mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-03 09:50:49 +00:00
skip files missing in build rector-src package
This commit is contained in:
parent
bab5ad9f04
commit
b1583c7d86
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user