Skip to content

Commit 046ab81

Browse files
authored
[BUGFIX] Support Lint on Windows (#610)
Use `php-parallel-lint` package to avoid *nix-specific command. Fixes #598.
1 parent ab47c9d commit 046ab81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
},
2929
"require-dev": {
3030
"codacy/coverage": "^1.4.3",
31+
"php-parallel-lint/php-parallel-lint": "^1.4.0",
3132
"phpstan/extension-installer": "^1.4.1",
3233
"phpstan/phpstan": "^1.11.5",
3334
"phpstan/phpstan-phpunit": "^1.4.0",
@@ -70,7 +71,7 @@
7071
"@ci:tests"
7172
],
7273
"ci:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix --dry-run -v --show-progress=dots --diff bin src tests config",
73-
"ci:php:lint": "find src tests config bin -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l",
74+
"ci:php:lint": "parallel-lint src tests config bin",
7475
"ci:php:rector": "rector --no-progress-bar --dry-run --config=config/rector.php",
7576
"ci:php:stan": "phpstan --no-progress --configuration=config/phpstan.neon",
7677
"ci:static": [

0 commit comments

Comments
 (0)