Skip to content
Permalink
Browse files

Micro-opt and return type fix.

  • Loading branch information...
dereuromark committed Jul 3, 2018
1 parent d997562 commit cb608f196445085ce8f5e9c9acb5d809e5967f24
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/Core/Configure/FileConfigTrait.php
@@ -60,8 +60,9 @@ protected function _getFilePath($key, $checkExists = false)
return $file;
}
if (is_file(realpath($file))) {
return realpath($file);
$realPath = realpath($file);
if ($realPath !== false && is_file($realPath)) {
return $realPath;
}
throw new Exception(sprintf('Could not load configuration file: %s', $file));

0 comments on commit cb608f1

Please sign in to comment.
You can’t perform that action at this time.