Skip to content

Commit

Permalink
Properly run phpstan in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
TysonAndre committed Oct 8, 2022
1 parent a6e2909 commit 6060b96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ jobs:
run: bash ci/run_tests_dockerized.sh ${{ matrix.PHP_VERSION }}

- name: Run static analysis (PHP 7.2 only)
run: if [[ "$STATIC_ANALYSIS" == true ]]; then bash ci/run_phpstan_dockerized.sh ${{ matrix.PHP_VERSION }}; fi
run: if [[ "${{ matrix.STATIC_ANALYSIS }}" == true ]]; then bash ci/run_phpstan_dockerized.sh ${{ matrix.PHP_VERSION }}; fi
2 changes: 1 addition & 1 deletion ci/run_phpstan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ set -xeu
# This installs and runs phpstan
# TODO: Remove separate phpstan install step after https://github.com/microsoft/tolerant-php-parser/pull/385 is merged
if [ ! -d vendor/phpstan/phpstan ]; then
composer.phar require --dev phpstan/phpstan@^1.8
composer.phar require --dev phpstan/phpstan=^1.8
fi
./vendor/bin/phpstan analyze

0 comments on commit 6060b96

Please sign in to comment.