Skip to content

Commit 032d902

Browse files
authored
PHPStan 1.11.5 (#6446)
1 parent 18ccd5b commit 032d902

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"doctrine/coding-standard": "12.0.0",
4444
"fig/log-test": "^1",
4545
"jetbrains/phpstorm-stubs": "2023.1",
46-
"phpstan/phpstan": "1.11.1",
46+
"phpstan/phpstan": "1.11.5",
4747
"phpstan/phpstan-strict-rules": "^1.6",
4848
"phpunit/phpunit": "9.6.19",
4949
"psalm/plugin-phpunit": "0.18.4",

phpstan.neon.dist

+6
Original file line numberDiff line numberDiff line change
@@ -146,5 +146,11 @@ parameters:
146146
# Ignore the possible false return value of db2_num_rows().
147147
- '~^Method Doctrine\\DBAL\\Driver\\IBMDB2\\Connection\:\:exec\(\) should return int but returns int<0, max>\|false\.$~'
148148
- '~^Method Doctrine\\DBAL\\Driver\\IBMDB2\\Result\:\:rowCount\(\) should return int but returns int<0, max>\|false\.$~'
149+
150+
# This is a rather complicated closure setup. We understand this, so PHPStan doesn't have to.
151+
-
152+
message: '#^Parameter \#2 \$callback of function array_reduce expects callable\(\(callable&TIn\)\|Closure\(mixed \$value\)\: mixed\|null, callable\(T\)\: T\)\: \(\(callable&TIn\)\|Closure\(mixed \$value\)\: mixed\|null\), Closure\(callable\|null, callable\)\: \(callable\(T\)\: T\) given\.$#'
153+
path: src/Portability/Converter.php
154+
149155
includes:
150156
- vendor/phpstan/phpstan-strict-rules/rules.neon

0 commit comments

Comments
 (0)