Skip to content

Commit

Permalink
🩹 is_file() returns true when opcache is misconfigured
Browse files Browse the repository at this point in the history
  • Loading branch information
hackhero920 committed Apr 5, 2022
1 parent 7d9acc5 commit fb753c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Roots/Acorn/Bootstrap/LoadConfiguration.php
Expand Up @@ -22,7 +22,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 fb753c9

Please sign in to comment.