Skip to content

Commit

Permalink
Fix: Use --generate-baseline option for generating baseline for phpst…
Browse files Browse the repository at this point in the history
…an/phpstan
  • Loading branch information
localheinz committed Nov 8, 2021
1 parent 9909693 commit 850e442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static-code-analysis: vendor ## Runs a static code analysis with phpstan/phpstan
static-code-analysis-baseline: vendor ## Generates a baseline for static code analysis with phpstan/phpstan and vimeo/psalm
mkdir -p .build/phpstan
echo '' > phpstan-baseline.neon
vendor/bin/phpstan analyze --configuration=phpstan.neon --error-format=baselineNeon --memory-limit=-1 > phpstan-baseline.neon || true
vendor/bin/phpstan analyze --configuration=phpstan.neon --generate-baseline --memory-limit=-1
mkdir -p .build/psalm
vendor/bin/psalm --config=psalm.xml --set-baseline=psalm-baseline.xml

Expand Down

0 comments on commit 850e442

Please sign in to comment.