vimeo/psalm
在 GitHub 查看Bug: psalm.xml cannot be loaded if a non-existent directory is specified
Open
#7,111 建立於 2021年12月9日
Help wantedenhancement
倉庫指標
- Star
- (5,369 star)
- PR 合併指標
- (平均合併 3天 12小時) (30 天內合併 5 個 PR)
描述
I just had this strange error
Problem parsing /var/www/html/psalm.xml: Could not resolve config path to /var/www/html/
thrown from here.
The cause was this snippet in my psalm.xml:
<RedundantConditionGivenDocblockType>
<errorLevel type="suppress">
<directory name="bar/"/>
</errorLevel>
</RedundantConditionGivenDocblockType>
I just had moved bar to foo/bar. So it could not resolve bar (realpath in Line 168 returned false). That was hard to find because the error was not very informative. Maybe we could change that so that I can see the real mistake a bit more clearly? 😅