mirror of https://github.com/rectorphp/rector.git
[Scoped] Rollback Symplify\SmartFileSystem\SmartFileInfo require at bootstrap.php (#2256)
This commit is contained in:
parent
6baafbc5a6
commit
e97288c13e
|
@ -23,4 +23,12 @@ spl_autoload_register(function (string $class): void {
|
|||
$composerAutoloader->loadClass($class);
|
||||
}
|
||||
}
|
||||
|
||||
// aliased by php-scoper, that's why its missing
|
||||
if ($class === 'Symplify\SmartFileSystem\SmartFileInfo') {
|
||||
$filePath = __DIR__ . '/vendor/symplify/smart-file-system/src/SmartFileInfo.php';
|
||||
if (file_exists($filePath)) {
|
||||
require $filePath;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue