diff --git a/composer.json b/composer.json index 4523a6f..f2008c5 100644 --- a/composer.json +++ b/composer.json @@ -26,12 +26,12 @@ "require": { "php": "^8.2", "laravel/browser-kit-testing": "^7.2", - "orchestra/testbench": "^9.2", + "orchestra/testbench": "^9.5", "symfony/dom-crawler": "^7.0" }, "require-dev": { - "laravel/pint": "^1.6", - "phpstan/phpstan": "^1.10.50" + "laravel/pint": "^1.17", + "phpstan/phpstan": "^1.11" }, "scripts": { "post-autoload-dump": [ diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 6f6a068..5bd34b8 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -5,6 +5,8 @@ parameters: # The level 8 is the highest level level: 6 - checkGenericClassInNonGenericObjectType: false - checkMissingIterableValueType: false + ignoreErrors: + # - identifier: missingType.generics + - identifier: missingType.iterableValue + treatPhpDocTypesAsCertain: false diff --git a/tests/RouteTest.php b/tests/RouteTest.php index 6120d7b..f79edd4 100644 --- a/tests/RouteTest.php +++ b/tests/RouteTest.php @@ -89,7 +89,7 @@ public function canSendRequestWithPrefixViaNamedRoute() #[Test] public function canSendRequestUsingActionHelper() { - $crawler = $this->action('GET', sprintf('%s@index', Controller::class)); + $crawler = $this->action('GET', \sprintf('%s@index', Controller::class)); $this->assertResponseOk(); $this->assertEquals('Controller@index', $crawler->getContent());