-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvalidDocblock in ignored directory #4265
Comments
Hey @binarious, can you reproduce the issue on https://psalm.dev ? |
Hi. The error is reproducible in symfony 5.1.6 and above, add the line
|
The error appears also on symfony 4, but is fixable in that way :) |
@rupa4ok Good catch. Symfony 5.1.6 and 4.4.14 added symfony/symfony#38063 and symfony/symfony#38142 which produce a new |
Same error on Psalm 4.3.2 and Symfony 5.2.1
psalm.xml <?xml version="1.0"?>
<psalm
errorLevel="1"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src"/>
<ignoreFiles>
<directory name="vendor"/>
<file name="src/Kernel.php"/>
</ignoreFiles>
</projectFiles>
</psalm> There is no
|
This is expected. ignoreFiles is made to tell Psalm not to analyse a file, but Psalm will still need to parse signature and phpdoc of functions/methods/classes called from the code you want to analyse. And if it comes across an error, it has to tell you that it won't be able to analyse properly the code |
I have ignored the
vendor
folder inignoreFiles
, but it still shows oneInvalidDocblock
error (while silencing other issues in that folder) in Psalm (v3.13 - v3.16):psalm.xml
The text was updated successfully, but these errors were encountered: