From e97288c13e76eadb2265145d9d680d757924a194 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 7 May 2022 20:38:43 +0700 Subject: [PATCH] [Scoped] Rollback Symplify\SmartFileSystem\SmartFileInfo require at bootstrap.php (#2256) --- build/target-repository/bootstrap.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build/target-repository/bootstrap.php b/build/target-repository/bootstrap.php index 2e46abf997c..6b0dbd8fb18 100644 --- a/build/target-repository/bootstrap.php +++ b/build/target-repository/bootstrap.php @@ -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; + } + } });