From b4d83c6f02135e129ecbee2d1fd171d862f9d038 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 13 Jan 2021 11:54:29 +0100 Subject: [PATCH] silence psalm false positive Signed-off-by: Arthur Schiwon --- apps/user_ldap/lib/Mapping/AbstractMapping.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/user_ldap/lib/Mapping/AbstractMapping.php b/apps/user_ldap/lib/Mapping/AbstractMapping.php index d46010efc3..6a395b2c84 100644 --- a/apps/user_ldap/lib/Mapping/AbstractMapping.php +++ b/apps/user_ldap/lib/Mapping/AbstractMapping.php @@ -222,6 +222,8 @@ abstract class AbstractMapping { $slice++; $fdnsSlice = array_slice($fdns, $sliceSize * ($slice - 1), $sliceSize); + /** @see https://github.com/vimeo/psalm/issues/4995 */ + /** @psalm-suppress TypeDoesNotContainType */ if (!isset($qb)) { $qb = $this->prepareListOfIdsQuery($fdnsSlice); continue;