You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
excludePaths must filter out path before symlinks are resolved #10321
When it is not excluded, PHPStan analyses the plugins directory twice. With excludePaths, it is impossible to exclude it, as excludePaths filtering is applied after the file paths are resolved.
Or better, PHPStan should be smart enough to detect if some (resolved) paths are analysed twice and analyse only the path with minimal symlink count :)
Activity
ondrejmirtes commentedon Dec 17, 2023
Are you sure? Even after this commit? phpstan/phpstan-src@7491260
mvorisek commentedon Dec 17, 2023
very sure: https://github.com/roundcube/roundcubemail/pull/9273/files
ondrejmirtes commentedon Jan 5, 2024
Yes, this is true because this line does not use
getRealPath(): https://github.com/phpstan/phpstan-src/blob/d2cdb022afa11d53d695cd0cbe3ad3036d6cfae2/src/File/FileFinder.php#L43However we can't simply change it because it'd be a BC break. But filtering duplicate files is possible.