Skip to content

Commit

Permalink
Upgrade Psalm to 6.5 and allow global constants and functions (#368)
Browse files Browse the repository at this point in the history
* Add php-version to psalm GitHub action config

* Upgrade Psalm to 6.5 and use global constants and functions
  • Loading branch information
chriszarate authored Feb 13, 2025
1 parent b4732ef commit 669d310
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
uses: docker://ghcr.io/psalm/psalm-github-actions
with:
composer_require_dev: true
php-version: '8.1'

dependaban:
name: Dependaban
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"phpunit/phpunit": "^9",
"slevomat/coding-standard": "^8.15",
"php-stubs/wordpress-stubs": "^6.6",
"psalm/phar": "^6.0",
"psalm/phar": "^6.5",
"mockery/mockery": "^1.6",
"wp-phpunit/wp-phpunit": "^6.7",
"yoast/phpunit-polyfills": "^3.1",
Expand Down
20 changes: 10 additions & 10 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
errorLevel="7"
resolveFromConfigFile="true"
phpVersion="8.1"
allConstantsGlobal="true"
allFunctionsGlobal="true"
findUnusedCode="true"
findUnusedBaselineEntry="true"
findUnusedPsalmSuppress="true"
Expand Down

0 comments on commit 669d310

Please sign in to comment.