From 26437444238dcd6a7aa42dd81a5b9b4626f7acd3 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Sun, 20 Oct 2024 19:10:39 +0100 Subject: [PATCH] move to use psalm.phar, remove psalm.xml change warnings --- composer.json | 4 ++-- psalm.xml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index c32def1..885c3a3 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "predis/predis": "^1.1", "psr/cache": "^1.0", "tedivm/stash": "^0.16", - "vimeo/psalm": "*", + "psalm/phar": "*", "phpstan/phpstan": "*" }, "suggest": { @@ -42,7 +42,7 @@ }, "scripts": { "build" : [ "@lint", "@check-format", "@psalm", "@phpstan", "@test" ], - "psalm" : "@php ./vendor/bin/psalm src", + "psalm" : "@php ./vendor/bin/psalm.phar src", "phpstan" : "@php vendor/bin/phpstan analyse --level 6 src", "lint": "@php ./vendor/bin/parallel-lint --exclude vendor/ .", "check-format": "@php ./vendor/bin/php-cs-fixer fix --ansi --dry-run --diff", diff --git a/psalm.xml b/psalm.xml index 0f8fd70..97b2bd3 100644 --- a/psalm.xml +++ b/psalm.xml @@ -3,6 +3,8 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://getpsalm.org/schema/config" xsi:schemaLocation="https://getpsalm.org/schema/config file:///home/david/src/RateLimit/vendor/vimeo/psalm/config.xsd" + findUnusedBaselineEntry="true" + findUnusedCode="false" >