We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9df616 commit 0272c19Copy full SHA for 0272c19
src/Configuration/Bootstrapper.php
@@ -46,7 +46,7 @@ public function run(Configuration $configuration)
46
47
if (!empty($filename)) {
48
$pathToFile = stream_resolve_include_path($filename);
49
- if (!$pathToFile || !is_readable($pathToFile)) {
+ if (!$pathToFile || !is_readable($pathToFile) || !is_file($pathToFile)) {
50
throw new Exception(sprintf('Cannot open bootstrap file "%s".' . PHP_EOL, $filename));
51
}
52
require $pathToFile;
0 commit comments