Skip to content

Commit b02e78d

Browse files
committed
PHPStan fix
1 parent 167127f commit b02e78d

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ifdef CI
22
DOCKER_PHP_EXEC :=
33
else
4-
DOCKER_PHP_EXEC := docker compose run --rm php
4+
DOCKER_PHP_EXEC := docker compose run --rm --env PHP_CS_FIXER_IGNORE_ENV=1 php
55
endif
66

77
all: csfix static-analysis test

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"php": "~8.3.0 || ~8.4.0"
1515
},
1616
"require-dev": {
17-
"phpstan/phpstan": "^2",
18-
"phpstan/phpstan-phpunit": "^2",
19-
"phpstan/phpstan-strict-rules": "^2",
17+
"phpstan/phpstan": "^2.1.1",
18+
"phpstan/phpstan-phpunit": "^2.0.3",
19+
"phpstan/phpstan-strict-rules": "^2.0.1",
2020
"phpunit/phpunit": "^11.5.2",
2121
"slam/php-cs-fixer-extensions": "^3.12",
2222
"symfony/console": "^7.2.1"

phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ parameters:
66
count: 1
77
path: lib/ErrorHandler.php
88

9-
-
10-
message: '#^Parameter \#2 \$array of function implode expects array\<string\>, mixed given\.$#'
11-
identifier: argument.type
12-
count: 1
13-
path: lib/ErrorHandler.php
14-
159
-
1610
message: '#^Parameter \#2 \$array of function implode expects array\|null, mixed given\.$#'
1711
identifier: argument.type

0 commit comments

Comments
 (0)