1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Check if included files are listed in mustBeIgnored (#4911)

Previously, when a file was included in `include()`, it was not subject
to ignoreFiles

Related to #4876
This commit is contained in:
Tyson Andre 2020-12-29 09:05:17 -05:00 committed by Daniil Gentili
parent 704ae5bd8f
commit d169d399af
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -143,6 +143,9 @@ class IncludeAnalyzer
) {
return true;
}
if ($config->mustBeIgnored($path_to_file)) {
return true;
}
$current_file_analyzer->addRequiredFilePath($path_to_file);