Skip to content

Commit fb92729

Browse files
committed
update phpstan
1 parent f35990d commit fb92729

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ jobs:
8181
run: vendor/bin/phpunit
8282

8383
- name: Run static code analysis
84-
if: matrix.analysis == true
8584
run: vendor/bin/phpstan --memory-limit=-1
8685

8786
- name: Upload coverage results

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"laravel/legacy-factories": "^1.3.0",
4444
"mockery/mockery": "^1.0",
4545
"orchestra/testbench": "^8.0 || ^9.0",
46-
"phpstan/phpstan": "^0.12",
46+
"phpstan/phpstan": "^2.1",
4747
"phpunit/phpunit": "^8.0 || ^9.0 || ^10.0 || ^11.0"
4848
},
4949
"minimum-stability": "dev",

phpstan-baseline.neon

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Variable \$queryString on left side of \?\? always exists and is not nullable\.$#'
5+
identifier: nullCoalesce.variable
6+
count: 1
7+
path: src/Util.php

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
includes:
2+
- phpstan-baseline.neon
3+
14
parameters:
25
level: 1
36
paths:

0 commit comments

Comments
 (0)