Skip to content

Commit 40b1f7c

Browse files
Merge pull request #233 from moebrowne
Check Bootstrap Is A File Before Including It
2 parents d9df616 + 0272c19 commit 40b1f7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Configuration/Bootstrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function run(Configuration $configuration)
4646

4747
if (!empty($filename)) {
4848
$pathToFile = stream_resolve_include_path($filename);
49-
if (!$pathToFile || !is_readable($pathToFile)) {
49+
if (!$pathToFile || !is_readable($pathToFile) || !is_file($pathToFile)) {
5050
throw new Exception(sprintf('Cannot open bootstrap file "%s".' . PHP_EOL, $filename));
5151
}
5252
require $pathToFile;

0 commit comments

Comments
 (0)