diff options
author | Joas Schilling <coding@schilljs.com> | 2022-07-08 13:37:01 +0300 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-07-08 13:59:34 +0300 |
commit | 3a935cd874645e74ee080ba41e6a9fc9968d9afc (patch) | |
tree | f43f832c6e537f47a67621627d27f758f00a346b | |
parent | 9ddac8e860afd4bda5fabe0efe8e41356d488c0e (diff) |
Type the return valuebackport/184/stable24
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/Controller/APIController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/APIController.php b/lib/Controller/APIController.php index e4fc4ff..252ca23 100644 --- a/lib/Controller/APIController.php +++ b/lib/Controller/APIController.php @@ -84,7 +84,7 @@ class APIController extends Controller { } catch (TagNotFoundException $e) { $missingTags = array_map('intval', $e->getMissingTags()); - $result = array_values(array_filter($result, static function (array $rule) use ($missingTags) { + $result = array_values(array_filter($result, static function (array $rule) use ($missingTags): bool { return !in_array($rule['tagid'], $missingTags, true); })); } |