Skip to content

Commit af013d8

Browse files
committed
feat: upgrade phpstan from 1 to 2
1 parent 2000890 commit af013d8

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"ergebnis/composer-normalize": "^2.45",
3333
"laravel/pint": "^1.21",
3434
"orchestra/testbench": "^3.1 || ^4.18 || ^5.20 || ^6.47 || ^7.53 || ^8.34 || ^9.12 || ^10.1",
35-
"phpstan/phpstan": "^1.12",
35+
"phpstan/phpstan": "^2.1",
3636
"phpunit/phpunit": "^5.7 || ^6.5 || ^7.5 || ^8.5 || ^9.6 || ^10.5 || ^11.5 || ^12.0"
3737
},
3838
"minimum-stability": "stable",

phpstan.neon

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
parameters:
22
level: 5
33

4-
parallel:
5-
maximumNumberOfProcesses: 4
6-
74
paths:
85
- src
96
- tests

tests/MiddlewareTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function getEnvironmentSetUp($app)
4545
$this->_response = 'response';
4646
}
4747

48-
$app->make(HttpKernel::class)->pushMiddleware(SecureHeadersMiddleware::class);
48+
$app->make(HttpKernel::class)->pushMiddleware(SecureHeadersMiddleware::class); // @phpstan-ignore-line
4949
}
5050

5151
public function test_middleware()

0 commit comments

Comments
 (0)