Skip to content

Commit

Permalink
fix: require fails if is_file cached by opcache (#41614)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel committed Mar 22, 2022
1 parent 4a9027a commit d53b1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php
Expand Up @@ -24,7 +24,7 @@ public function bootstrap(Application $app)
// First we will see if we have a cache configuration file. If we do, we'll load
// the configuration items from that file so that it is very quick. Otherwise
// we will need to spin through every configuration file and load them all.
if (is_file($cached = $app->getCachedConfigPath())) {
if (file_exists($cached = $app->getCachedConfigPath())) {
$items = require $cached;

$loadedFromCache = true;
Expand Down

0 comments on commit d53b1ad

Please sign in to comment.