diff --git a/composer.json b/composer.json index 615fd95..8c9211d 100644 --- a/composer.json +++ b/composer.json @@ -26,9 +26,9 @@ }, "require-dev": { "roave/security-advisories": "dev-latest", - "phpstan/phpstan": "^1.10", + "phpstan/phpstan": "^2", "squizlabs/php_codesniffer": "^4.0.x-dev", - "phpunit/phpunit": "^10.2" + "phpunit/phpunit": "^11" }, "autoload": { "psr-4": { diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 484be13..0d2d107 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,4 +1,5 @@ parameters: level: 9 + treatPhpDocTypesAsCertain: false paths: - src \ No newline at end of file diff --git a/tests/Unit/Types/TagsTest.php b/tests/Unit/Types/TagsTest.php index 790e387..c240234 100644 --- a/tests/Unit/Types/TagsTest.php +++ b/tests/Unit/Types/TagsTest.php @@ -200,7 +200,7 @@ public static function dataProvider_contains(): iterable yield ['tags' => ['foo:bar'], 'tag' => 'key:bar2', 'expectedResult' => false]; yield ['tags' => ['foo:bar'], 'tag' => 'bar:bar', 'expectedResult' => false]; - yield ['tags' => ['foo:bar', 'baz:foos'], 'bar' => 'notFoo:notBar', 'expectedResult' => false]; + yield ['tags' => ['foo:bar', 'baz:foos'], 'tag' => 'notFoo:notBar', 'expectedResult' => false]; } /**