Skip to content

Commit

Permalink
Adapt ignore error message
Browse files Browse the repository at this point in the history
Looks like the "of object" part is no longer mentioned in recent PHPStan
versions.
  • Loading branch information
greg0ire committed Dec 8, 2023
1 parent 0a0fa97 commit 3242311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ parameters:
ignoreErrors:
# PHPStan is unable to infer the return type of unserialize() in this case.
-
message: '#Method Doctrine\\Instantiator\\Instantiator\:\:buildFactory\(\) should return callable\(\): T of object but returns Closure\(\): mixed\.#'
message: '#Method Doctrine\\Instantiator\\Instantiator\:\:buildFactory\(\) should return callable\(\): T but returns Closure\(\): mixed\.#'
path: 'src/Doctrine/Instantiator/Instantiator.php'

# dynamic properties confuse static analysis
Expand Down

0 comments on commit 3242311

Please sign in to comment.