Skip to content

Commit d53b1ad

Browse files
authored
fix: require fails if is_file cached by opcache (#41614)
1 parent 4a9027a commit d53b1ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function bootstrap(Application $app)
2424
// First we will see if we have a cache configuration file. If we do, we'll load
2525
// the configuration items from that file so that it is very quick. Otherwise
2626
// we will need to spin through every configuration file and load them all.
27-
if (is_file($cached = $app->getCachedConfigPath())) {
27+
if (file_exists($cached = $app->getCachedConfigPath())) {
2828
$items = require $cached;
2929

3030
$loadedFromCache = true;

0 commit comments

Comments
 (0)