Skip to content

Commit 6dca903

Browse files
committed
improved maintainability
1 parent 04ef827 commit 6dca903

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ validate:
88
composer validate
99

1010
analyze:
11-
./vendor/bin/phpstan analyze --level 3 --ansi src/ tests/
11+
composer exec -v phpstan analyse -- -c vendor/phpstan/phpstan/conf/phpstan.neon --level 10 --ansi src/ tests/
1212

1313
lint:
1414
composer exec --verbose phpcs -- --standard=PSR12 src/ bin/

src/CommandLineParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function __construct(mixed $parser = null)
2121
if ($handler !== false) {
2222
$fileData = fread(
2323
$handler,
24-
($filesize !== false) ? $filesize : 1
24+
($filesize !== false) ? max(1, $filesize) : 1
2525
);
2626
$this->parserDescriptor = is_string($fileData) ? $fileData : "";
2727
fclose($handler);

0 commit comments

Comments
 (0)