From b97f48f1afcb334d83e30af79d8190ec8c8d3ae0 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Sun, 10 Sep 2017 20:01:15 +0200 Subject: [PATCH] Add exceptions to PHPDoc of interface Improves static code analysis here and also keeps expectations proper. Signed-off-by: Lukas Reschke --- lib/public/Share/IManager.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/public/Share/IManager.php b/lib/public/Share/IManager.php index 31f04803066..764e36b5d7e 100644 --- a/lib/public/Share/IManager.php +++ b/lib/public/Share/IManager.php @@ -40,6 +40,7 @@ interface IManager { * * @param IShare $share * @return IShare The share object + * @throws \Exception * @since 9.0.0 */ public function createShare(IShare $share); @@ -51,6 +52,7 @@ interface IManager { * * @param IShare $share * @return IShare The share object + * @throws \InvalidArgumentException * @since 9.0.0 */ public function updateShare(IShare $share); @@ -60,6 +62,7 @@ interface IManager { * * @param IShare $share * @throws ShareNotFound + * @throws \InvalidArgumentException * @since 9.0.0 */ public function deleteShare(IShare $share);