Skip to content

Commit

Permalink
minor #6185 Upgrade PHPStan (kubawerlos)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Upgrade PHPStan

Requires #6184 to be merged.

After merging the PR above CI will be green.

The end 🎆

As an extra you can see here PHPStan error annotation in the diff (until it is fixed of course).

Commits
-------

5661979 Upgrade PHPStan
  • Loading branch information
SpacePossum committed Dec 16, 2021
2 parents d23cc90 + 5661979 commit 1f4f55a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/sca.yml
Expand Up @@ -28,6 +28,8 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none # without this Xdebug will be enabled
tools: cs2pr

- name: Get Composer cache directory
id: composer-cache
Expand Down Expand Up @@ -70,7 +72,7 @@ jobs:
run: ./dev-tools/check_trailing_spaces.sh

- name: Check - phpstan
run: ./dev-tools/vendor/bin/phpstan analyse
run: ./dev-tools/vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr

- name: Check - composer-require-checker
run: ./dev-tools/vendor/bin/composer-require-checker check composer.json --config-file .composer-require-checker.json
Expand Down
6 changes: 3 additions & 3 deletions dev-tools/composer.json
Expand Up @@ -6,12 +6,12 @@
"ergebnis/composer-normalize": "^2.17.0",
"humbug/box": "^3.8",
"humbug/php-scoper": "dev-master#0a4e329 as 0.14.2",
"jangregor/phpstan-prophecy": "^0.8.1",
"jangregor/phpstan-prophecy": "^1.0",
"maglnet/composer-require-checker": "3.3.0",
"mi-schi/phpmd-extension": "^4.3",
"phpmd/phpmd": "^2.10.2",
"phpstan/phpstan": "0.12.96",
"phpstan/phpstan-phpunit": "0.12.21"
"phpstan/phpstan": "^1.2",
"phpstan/phpstan-phpunit": "^1.0"
},
"config": {
"optimize-autoloader": true,
Expand Down

0 comments on commit 1f4f55a

Please sign in to comment.