Skip to content

Commit d853281

Browse files
committed
feat: add Psalm static analysis
1 parent be4d0fd commit d853281

File tree

6 files changed

+2480
-204
lines changed

6 files changed

+2480
-204
lines changed

.github/workflows/symfony.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,7 @@ jobs:
122122
run: castor lint:php
123123
- name: PHPStan static analysis
124124
run: castor stan
125+
- name: Psalm static analysis
126+
run: make psalm
125127

126128
# The end. 🙃

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ cov-report: var/coverage/index.html ## Open the PHPUnit code coverage report (va
8181
stan: var/cache/dev/App_KernelDevDebugContainer.xml ## Run the PHPStan static analysis
8282
@vendor/bin/phpstan analyse -c phpstan.neon --memory-limit 1G -vv
8383

84+
psalm: var/cache/dev/App_KernelDevDebugContainer.xml ## Run the Psalm analysis
85+
@vendor/bin/psalm
86+
8487
# PHPStan needs the dev/debug cache
8588
var/cache/dev/App_KernelDevDebugContainer.xml:
8689
APP_DEBUG=1 APP_ENV=dev bin/console cache:warmup

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"phpstan/extension-installer": "^1.3",
5555
"phpstan/phpstan-symfony": "^2.0",
5656
"phpunit/phpunit": "^11.0",
57+
"psalm/plugin-symfony": "^5.2",
5758
"roave/security-advisories": "dev-latest",
5859
"symfony/browser-kit": "~7.2.0",
5960
"symfony/css-selector": "~7.2.0",

0 commit comments

Comments
 (0)