Skip to content

Commit 57f1d61

Browse files
committed
updated command line parser
1 parent 7bbe1dc commit 57f1d61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parsers/CommandLineParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __construct(\Docopt|DocoptDoubleInterface $parser)
2323
$filename = __DIR__ . "/../../docopt.txt";
2424
if (
2525
file_exists($filename) &&
26-
($handler = fopen($filename, 'r'))
26+
($handler = fopen($filename, 'r')) !== false
2727
) {
2828
$filesize = filesize($filename);
2929
$fileData = fread(

0 commit comments

Comments
 (0)