Skip to content

Commit 0272c19

Browse files
committed
Adds an is_file check
1 parent d9df616 commit 0272c19

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)