Skip to content

Commit

Permalink
skip files missing in build rector-src package
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jun 5, 2022
1 parent bab5ad9 commit b1583c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/build-preload.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ private function matchFilePriorityPosition(SplFileInfo $splFileInfo): int

$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;
Expand Down

0 comments on commit b1583c7

Please sign in to comment.