Replies: 1 comment 3 replies
-
src is the directory you want to analyse code on. However, Psalm will need to scan function definitions on your vendors (so it know that $vendorObject->AFunction() returns a string and take no argument) So, on a normal day, Psalm scans /vendor and analyze /src. However, there are cases where Psalm encounters some alien declaration on your vendors and Psalm can't scan properly. Depending on the issue, Psalm can crash or emit an issue. However, Psalm won't go inside the functions in /vendor to check for errors there, it's merely retrieving declaration to be able to do its job properly |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The first example here consider
directory name="src"
.But when I run it, I see
vendor/
,public
in errors, so other folders than the one defined in the configuration file.So what is the point of defining
<directory name="src" />
?Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions