PHP Warning when configuring referencedMethod #8759
Labels
bug
easy problems
Issues that can be fixed without background knowledge of Psalm
good first issue
Help wanted
Problem
I have the following in my psalm.xml file.
When running
psalm
the following error shows up.After checking the corresponding code I think the idea was to suppress the warnings while validating the regexp. However, it doesn't work because the temporary error handler returns
false
which causes the default error handler to continue.Proposed solution
Return
true
from the error handler or use@
to suppress any errors frompreg_match()
.The text was updated successfully, but these errors were encountered: