Skip to content

Commit

Permalink
[Quality] Fixing basic PHPStan step (2.10.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbayet committed Sep 24, 2023
1 parent 20c0142 commit 2b74e79
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/01-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
run: composer config -g http-basic.repo.magento.com "$MAGENTO_USERNAME" "$MAGENTO_PASSWORD"

- name: Add phpstan/phpstan
if: ${{ matrix.php-versions }} == '8.1'
if: ${{ matrix.php-versions == '8.1' }}
run: composer require --no-update --dev smile/magento2-smilelab-phpstan ^1.0

- name: Install dependencies
Expand All @@ -75,7 +75,7 @@ jobs:
run: vendor/bin/phpmd src text vendor/smile/magento2-smilelab-phpmd/phpmd-rulesets/rulset.xml

- name: PHPStan
if: ${{ matrix.php-versions }} == '8.1'
if: ${{ matrix.php-versions == '8.1' }}
run: vendor/bin/phpstan analyze --level=0 src

- name: PHPUnit
Expand Down
8 changes: 8 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
parameters:
level: 6
checkMissingIterableValueType: false
paths:
- src

includes:
- vendor/smile/magento2-smilelab-phpstan/extension.neon

0 comments on commit 2b74e79

Please sign in to comment.