skip files missing in build rector-src package

This commit is contained in:
Tomas Votruba 2022-06-05 09:16:27 +02:00
parent bab5ad9f04
commit b1583c7d86

View File

@ -185,6 +185,11 @@ PHP;
$fileRealPath = $splFileInfo->getRealPath();
// file not found, e.g. in rector-src dev dependency
if ($fileRealPath === false) {
return 0;
}
foreach ($highPriorityFiles as $position => $highPriorityFile) {
if (str_ends_with($fileRealPath, '/' . $highPriorityFile)) {
return $position;