diff --git a/phpstan.neon.dist b/phpstan.neon.dist index a6462cfca..31826b1aa 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -23,11 +23,12 @@ parameters: message: '~^Property Atk4\\Data\\Model\\UserAction::\$(enabled|preview) .*Closure<.+ does not accept .*Closure\(.+\.$~' count: 3 - # https://github.com/phpstan/phpstan/issues/5551 + # https://github.com/phpstan/phpstan/issues/11718 - - path: 'src/*' - message: '~^(Static property Atk4\\Data\\Reference::\$analysingClosureMap \(Atk4\\Data\\Reference\\WeakAnalysingMap, Closure, Atk4\\Data\\Model\|Atk4\\Data\\Persistence>\) does not accept Atk4\\Data\\Reference\\WeakAnalysingMap\.|Static property Atk4\\Data\\Reference::\$analysingTheirModelMap \(Atk4\\Data\\Reference\\WeakAnalysingMap\): Atk4\\Data\\Model\), array\}, Atk4\\Data\\Model, Atk4\\Data\\Model\|Atk4\\Data\\Persistence>\) does not accept Atk4\\Data\\Reference\\WeakAnalysingMap\.|Cannot call method assertIsInitialized\(\) on array\|object\.)$~' - count: 5 + path: 'src/Reference.php' + identifier: argument.type + message: '~^Parameter #1 \$key of method Atk4\\Data\\Reference\\WeakAnalysingMap,Closure,Atk4\\Data\\Model\|Atk4\\Data\\Persistence>::(get|set)\(\) expects list, array\{0: Atk4\\Data\\Reference\\WeakAnalysingMap, Closure, Atk4\\Data\\Model\|Atk4\\Data\\Persistence>, 1: non-falsy-string, 2: class-string\|null, 3\?: object\|null, 4\?: non-empty-array\} given\.$~' + count: 2 # fix https://github.com/phpstan/phpstan-deprecation-rules/issues/52 and https://github.com/phpstan/phpstan/issues/6444 -