We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c62b6ed + 8bfc959 commit 557f8c0Copy full SHA for 557f8c0
composer.json
@@ -76,7 +76,12 @@
76
"symfony/polyfill-mbstring": "*"
77
},
78
"scripts": {
79
- "lint": "find . -name \\*.php -print0 | xargs -0 -n1 php -l",
+ "lint": [
80
+ "@lint-8.2-or-earlier",
81
+ "@lint-8.3-or-later"
82
+ ],
83
+ "lint-8.2-or-earlier": "[ $(php -r \"echo PHP_VERSION_ID;\") -ge 80300 ] || find . -type f -name '*.php' -not -name '.*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l",
84
+ "lint-8.3-or-later": "[ $(php -r \"echo PHP_VERSION_ID;\") -lt 80300 ] || find . -type f -name '*.php' -not -name '.*.php' -print0 | xargs -0 -n200 -P$(nproc) php -l",
85
"pre-autoload-dump": "Aws\\Script\\Composer\\Composer::removeUnusedServices"
86
87
"extra": {
0 commit comments