Skip to content

Commit de722d9

Browse files
committed
use phpstan 2 to check generated files as well as generator
1 parent 76904c5 commit de722d9

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"php": "^8.1"
9797
},
9898
"require-dev": {
99-
"phpstan/phpstan": "^1",
99+
"phpstan/phpstan": "^2",
100100
"squizlabs/php_codesniffer": "^3.2",
101101
"phpunit/phpunit": "^10",
102102
"php-parallel-lint/php-parallel-lint": "^1.4"

lib/special_cases.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,7 @@ function posix_getpgid(int $process_id): int
358358
function fputcsv($stream, array $fields, string $separator = ",", string $enclosure = "\"", string $escape = "\\", string $eol = "\n"): int
359359
{
360360
error_clear_last();
361-
if (PHP_VERSION_ID >= 80100) {
362-
$result = \fputcsv($stream, $fields, $separator, $enclosure, $escape, $eol);
363-
} else {
364-
$result = \fputcsv($stream, $fields, $separator, $enclosure, $escape);
365-
}
361+
$result = \fputcsv($stream, $fields, $separator, $enclosure, $escape, $eol);
366362

367363
if ($result === false) {
368364
throw FilesystemException::createFromPhpError();

0 commit comments

Comments
 (0)