diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b5c1c18e..1ef41ee9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/composer.json b/composer.json index d44b22fd..4706cda2 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/composer.lock b/composer.lock index 70559b28..7678e33b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "1502305afc876f94cb1e3a76cbbeb1ec", + "content-hash": "0313acfc48efaccad68091d4f7b99964", "packages": [ { "name": "erusev/parsedown", @@ -2459,16 +2459,16 @@ }, { "name": "psalm/phar", - "version": "6.1.0", + "version": "6.5.1", "source": { "type": "git", "url": "https://github.com/psalm/phar.git", - "reference": "65011fc1453292b88c79dd09549d8d04c4e06c75" + "reference": "f7ecaf8740f32d58695cee5ac11663e02b44b223" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/psalm/phar/zipball/65011fc1453292b88c79dd09549d8d04c4e06c75", - "reference": "65011fc1453292b88c79dd09549d8d04c4e06c75", + "url": "https://api.github.com/repos/psalm/phar/zipball/f7ecaf8740f32d58695cee5ac11663e02b44b223", + "reference": "f7ecaf8740f32d58695cee5ac11663e02b44b223", "shasum": "" }, "require": { @@ -2488,9 +2488,9 @@ "description": "Composer-based Psalm Phar", "support": { "issues": "https://github.com/psalm/phar/issues", - "source": "https://github.com/psalm/phar/tree/6.1.0" + "source": "https://github.com/psalm/phar/tree/6.5.1" }, - "time": "2025-01-30T19:46:07+00:00" + "time": "2025-02-10T10:05:10+00:00" }, { "name": "sebastian/cli-parser", @@ -3888,12 +3888,12 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": { "php": ">=8.1" }, - "platform-dev": [], - "plugin-api-version": "2.3.0" + "platform-dev": {}, + "plugin-api-version": "2.6.0" } diff --git a/psalm.xml b/psalm.xml index cb3c4c74..eb2a5307 100644 --- a/psalm.xml +++ b/psalm.xml @@ -3,6 +3,8 @@ errorLevel="7" resolveFromConfigFile="true" phpVersion="8.1" + allConstantsGlobal="true" + allFunctionsGlobal="true" findUnusedCode="true" findUnusedBaselineEntry="true" findUnusedPsalmSuppress="true"