diff --git a/src/Bootstrappers/BootFiles.php b/src/Bootstrappers/BootFiles.php index 98bb2dec..3add2a70 100644 --- a/src/Bootstrappers/BootFiles.php +++ b/src/Bootstrappers/BootFiles.php @@ -66,10 +66,12 @@ final class BootFiles implements Bootstrapper */ private function load(string $filename): void { - if (! Str::endsWith($filename, '.php') || ! file_exists($filename)) { + if (! Str::endsWith($filename, '.php')) { + return; + } + if (! file_exists($filename)) { return; } - include_once $filename; }