Skip to content

Commit

Permalink
Ignore issue about undefined variable
Browse files Browse the repository at this point in the history
Using &$error inside the use clause of a Closure to make a variable
defined inside the closure available outside should be fine. Psalm seems
to be OK with it on the playground, which uses the master branch, which
must contain a fix, but I did not find which commit exactly on master
fixes it.
  • Loading branch information
greg0ire committed Dec 8, 2023
1 parent 3242311 commit a8cfac1
Showing 1 changed file with 8 additions and 0 deletions.
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 a8cfac1

Please sign in to comment.