Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion includes/generic/phpstan.inc.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
set +e
phpStanExitCode=99
phpStanMemoryLimit=${phpStanMemoryLimit:-256M}
phpstanNoProgress=()
if [[ "true" == "$CI" ]]
then
Expand All @@ -8,7 +9,7 @@ fi
while (( phpStanExitCode > 0 ))
do
set -x
phpNoXdebug -f bin/phpstan.phar -- analyse ${pathsToCheck[@]} -l7 -c "$phpstanConfigPath" ${phpstanNoProgress[@]:-}
phpNoXdebug -d memory_limit=${phpStanMemoryLimit} -f bin/phpstan.phar -- analyse ${pathsToCheck[@]} -l7 -c "$phpstanConfigPath" ${phpstanNoProgress[@]:-}
phpStanExitCode=$?
set +x
#exit code 0 = fine, 1 = ran fine but found errors, else it means it crashed
Expand Down