Skip to content

Commit a16f3eb

Browse files
authored
Upgrade psalm (#1462)
* Upgrade psalm * Disable the ArgumentTypeCoercion rule of Psalm for now This gets reported for any Result object populating enum fields due to not validating the enum value in this generated code. This may be re-enabled in the future once the generated code passes it. * Use composer to install the phar * Regenerate the psalm baseline * Add explicit configuration for settings that will change default This avoids getting warnings when running Psalm. * Fix potential undefined array offset * Disable the PropertyTypeCoercion rule of Psalm for now
1 parent ae0d147 commit a16f3eb

File tree

5 files changed

+453
-185
lines changed

5 files changed

+453
-185
lines changed

.github/workflows/static.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,4 @@ jobs:
105105
composer update --no-interaction --prefer-dist --optimize-autoloader
106106
107107
- name: Psalm
108-
uses: docker://vimeo/psalm-github-actions:5.1.0
109-
env:
110-
REQUIRE_DEV: "true"
111-
with:
112-
args: --no-progress --show-info=false --stats
108+
run: vendor/bin/psalm.phar --no-progress --show-info=false --stats

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"nette/utils": "^3.0",
3232
"nyholm/symfony-bundle-test": "^2.0",
3333
"phpstan/phpstan": "1.10.21",
34+
"psalm/phar": "5.11.0",
3435
"psr/cache": "^1.0 || ^2.0 || ^3.0",
3536
"swaggest/json-diff": "^3.7",
3637
"symfony/cache": "^4.4 || ^5.0 || ^6.0 || ^7.0",

0 commit comments

Comments
 (0)