Skip to content

Commit

Permalink
use phpstan 2 to check generated files as well as generator
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Feb 10, 2025
1 parent 76904c5 commit de722d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"php": "^8.1"
},
"require-dev": {
"phpstan/phpstan": "^1",
"phpstan/phpstan": "^2",
"squizlabs/php_codesniffer": "^3.2",
"phpunit/phpunit": "^10",
"php-parallel-lint/php-parallel-lint": "^1.4"
Expand Down
6 changes: 1 addition & 5 deletions lib/special_cases.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,7 @@ function posix_getpgid(int $process_id): int
function fputcsv($stream, array $fields, string $separator = ",", string $enclosure = "\"", string $escape = "\\", string $eol = "\n"): int
{
error_clear_last();
if (PHP_VERSION_ID >= 80100) {
$result = \fputcsv($stream, $fields, $separator, $enclosure, $escape, $eol);
} else {
$result = \fputcsv($stream, $fields, $separator, $enclosure, $escape);
}
$result = \fputcsv($stream, $fields, $separator, $enclosure, $escape, $eol);

if ($result === false) {
throw FilesystemException::createFromPhpError();
Expand Down

0 comments on commit de722d9

Please sign in to comment.