From ff26ed72312838acbc801cc5e410faa5bab181e1 Mon Sep 17 00:00:00 2001 From: Arie Oldman Date: Fri, 12 Nov 2021 16:18:49 +1100 Subject: Adds --memory-limit support for phpstan (#3973) * Adds --memmory-limit option for PHPStan linter * Updates docs for phpstan --memory-limit option. * Adds Arizard to authors * Adds test for phpstan memory limit parameter * Fixes order of parameters in test * Changes dash to underscore --- test/linter/test_phpstan.vader | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/linter/test_phpstan.vader b/test/linter/test_phpstan.vader index b5b3d3b7..dbeb1bd1 100644 --- a/test/linter/test_phpstan.vader +++ b/test/linter/test_phpstan.vader @@ -113,3 +113,9 @@ Execute(Autoload parameter is added to the command): AssertLinter 'phpstan', \ ale#Escape('phpstan') . ' analyze --no-progress --errorFormat json -a ' . ale#Escape('autoload.php') . ' -l ' . ale#Escape('4') . ' %s' + +Execute(Memory limit parameter is added to the command): + let g:ale_php_phpstan_memory_limit = '500M' + + AssertLinter 'phpstan', + \ ale#Escape('phpstan') . ' analyze --no-progress --errorFormat json -l ' . ale#Escape('4') . ' --memory-limit ' . ale#Escape('500M') . ' %s' -- cgit v1.2.3