From 83a2cec374acb46765781bb412e18830a26f6b1e Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 13 May 2020 22:48:59 +0200 Subject: [PATCH] Use proper exit code for composer lint Signed-off-by: Morris Jobke --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d84abcac7e..0891b07701 100644 --- a/composer.json +++ b/composer.json @@ -50,7 +50,7 @@ "scripts": { "cs:check": "php-cs-fixer fix --dry-run --diff", "cs:fix": "php-cs-fixer fix", - "lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;", + "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l", "phan": "phan --allow-polyfill-parser -k .phan/config.php", "test:integration": "phpunit -c tests/phpunit.integration.xml tests/Integration --fail-on-warning", "test:integration:dev": "phpunit -c tests/phpunit.integration.xml tests/Integration --no-coverage --fail-on-warning --stop-on-error --stop-on-failure",