diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 67d8db2a31..16c8d6dfde 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -237,3 +237,8 @@ parameters: message: "#^Call to an undefined method ReflectionEnum\\:\\:getBackingType\\(\\)\\.$#" count: 1 path: lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php + + - + message: "#has parameter \\$[^\\s]+ with no value type specified in iterable type array\\.$#" + count: 6 + path: tests/* diff --git a/tests/Doctrine/ODM/MongoDB/Tests/Aggregation/Stage/MatchStageTest.php b/tests/Doctrine/ODM/MongoDB/Tests/Aggregation/Stage/MatchStageTest.php index c624c4a1bc..ab7c2699e4 100644 --- a/tests/Doctrine/ODM/MongoDB/Tests/Aggregation/Stage/MatchStageTest.php +++ b/tests/Doctrine/ODM/MongoDB/Tests/Aggregation/Stage/MatchStageTest.php @@ -40,8 +40,6 @@ public function testMatchFromBuilder(): void } /** - * @param mixed[] $args - * * @dataProvider provideProxiedExprMethods */ public function testProxiedExprMethods(string $method, array $args = []): void diff --git a/tests/Doctrine/ODM/MongoDB/Tests/BaseTest.php b/tests/Doctrine/ODM/MongoDB/Tests/BaseTest.php index 2a26bd4613..b44cd9cd09 100644 --- a/tests/Doctrine/ODM/MongoDB/Tests/BaseTest.php +++ b/tests/Doctrine/ODM/MongoDB/Tests/BaseTest.php @@ -88,9 +88,6 @@ protected function getConfiguration(): Configuration * the original assertion checked. * * @deprecated - * - * @param mixed[] $subset - * @param mixed[] $array */ public static function assertArraySubset(array $subset, array $array, bool $checkForObjectIdentity = false, string $message = ''): void { diff --git a/tests/Doctrine/ODM/MongoDB/Tests/Query/BuilderTest.php b/tests/Doctrine/ODM/MongoDB/Tests/Query/BuilderTest.php index 3138d6ee1c..01fea98d62 100644 --- a/tests/Doctrine/ODM/MongoDB/Tests/Query/BuilderTest.php +++ b/tests/Doctrine/ODM/MongoDB/Tests/Query/BuilderTest.php @@ -474,8 +474,6 @@ public function testDeepClone(): void } /** - * @param mixed[] $args - * * @dataProvider provideProxiedExprMethods */ public function testProxiedExprMethods(string $method, array $args = []): void @@ -569,8 +567,7 @@ public function providePoint(): array } /** - * @param string[] $args - * @param array $expected + * @param string[] $args * * @dataProvider provideSelectProjections */ @@ -588,8 +585,7 @@ public function provideSelectProjections(): array } /** - * @param string[] $args - * @param array $expected + * @param string[] $args * * @dataProvider provideExcludeProjections */