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:40 +0300 |
commit | a3402e0856fd4b0cfaa4e92051c4616294ad508b (patch) | |
tree | 9548a740fc08dced57c536dc9779041a2e20335a | |
parent | 32a4f96b4b66f70a7651424c73bae15868ba8749 (diff) |
Type the return valuebackport/184/stable23
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 630aa7c..9397df0 100644 --- a/lib/Controller/APIController.php +++ b/lib/Controller/APIController.php @@ -102,7 +102,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); })); } |