Skip to content

Commit ed18909

Browse files
committed
ci: disable php memory limit when running phpcs or phpstan
1 parent 40a7cba commit ed18909

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646
},
4747
"scripts": {
4848
"format": "phpcbf --standard=phpcs.xml --report-summary --report-source",
49-
"phpcs": "phpcs --standard=phpcs.xml --extensions=php -s",
49+
"phpcs": "phpcs --standard=phpcs.xml --extensions=php -s -d memory_limit=-1",
5050
"test": "[ -z \"$WP_TESTS_DIR\" ] || [ -z \"$WP_CORE_DIR\" ] && echo 'Error: Both WP_TESTS_DIR and WP_CORE_DIR must be defined.' && exit 1 || phpunit --configuration=phpunit.xml",
5151
"lint": "composer run-script phpcs",
52-
"phpstan": "phpstan analyse --memory-limit 2G",
52+
"phpstan": "phpstan analyse --memory-limit=-1",
5353
"install-wp-tests": "bash bin/install-wp-tests.sh wordpress_test root '' localhost latest"
5454
},
5555
"require": {

0 commit comments

Comments
 (0)