diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2020-11-20 20:52:54 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-03-25 18:47:38 +0100 |
commit | 2baa7a2b9136d4d4dc1e56dfc043cc71da3ee1df (patch) | |
tree | d8f970ce85442869ad9547f80f70153a31820563 /lib/Controller/FolderApiController.php | |
parent | 8b519cd234b1293e03ef288617287be1a30cfc75 (diff) |
Make PHPstan stricter
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Controller/FolderApiController.php')
-rw-r--r-- | lib/Controller/FolderApiController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/FolderApiController.php b/lib/Controller/FolderApiController.php index 71fc503e2..ce5d69f2b 100644 --- a/lib/Controller/FolderApiController.php +++ b/lib/Controller/FolderApiController.php @@ -91,7 +91,7 @@ class FolderApiController extends ApiController */ public function delete(?int $folderId) { - if (empty($folderId)) { + if (is_null($folderId)) { return new JSONResponse([], Http::STATUS_BAD_REQUEST); } @@ -117,7 +117,7 @@ class FolderApiController extends ApiController */ public function update(?int $folderId, string $name) { - if (empty($folderId)) { + if (is_null($folderId)) { return new JSONResponse([], Http::STATUS_BAD_REQUEST); } |