diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index b278eac367..a63ae6ce76 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -34495,11 +34495,6 @@ parameters: count: 1 path: tests/integration/Core/Repository/LocationServiceTest.php - - - message: "#^Cannot access property \\$id on Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Location\\|false\\.$#" - count: 1 - path: tests/integration/Core/Repository/LocationServiceTest.php - - message: "#^Cannot access property \\$id on Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Location\\|null\\.$#" count: 11 diff --git a/src/lib/Limitation/RoleLimitationType.php b/src/lib/Limitation/RoleLimitationType.php index a9f4dc0909..5940e1d021 100644 --- a/src/lib/Limitation/RoleLimitationType.php +++ b/src/lib/Limitation/RoleLimitationType.php @@ -49,7 +49,7 @@ public function acceptValue(APILimitationValue $limitationValue): void foreach ($limitationValue->limitationValues as $key => $id) { if (!is_int($id)) { - throw new InvalidArgumentType("\$limitationValue->limitationValues[{$key}]", 'int|string', $id); + throw new InvalidArgumentType("\$limitationValue->limitationValues[{$key}]", 'int', $id); } } }