Skip to content

Commit

Permalink
Merge pull request #104 from greg0ire/adapt-ignore-message
Browse files Browse the repository at this point in the history
Adapt ignore error message
  • Loading branch information
greg0ire authored Dec 9, 2023
2 parents 0a0fa97 + a8cfac1 commit 15e9c2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions 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
8 changes: 8 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,12 @@
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
<!-- Issue about &error; should go away with Psalm v6 -->
<UndefinedVariable>
<errorLevel type="suppress">
<file name="src/Doctrine/Instantiator/Instantiator.php" />
</errorLevel>
</UndefinedVariable>
</issueHandlers>
</psalm>

0 comments on commit 15e9c2e

Please sign in to comment.