From 49e597003c7beb486210744390d0b58d3ade0c5f Mon Sep 17 00:00:00 2001 From: Marcus Jaschen Date: Sun, 12 Jan 2025 09:47:25 +0100 Subject: [PATCH] replace Psalm with PHPStan --- composer.json | 6 +++--- phpstan.neon | 6 ++++++ psalm.xml | 20 -------------------- 3 files changed, 9 insertions(+), 23 deletions(-) create mode 100644 phpstan.neon delete mode 100644 psalm.xml diff --git a/composer.json b/composer.json index 4a4a8d6..d724fd2 100644 --- a/composer.json +++ b/composer.json @@ -51,19 +51,19 @@ }, "require-dev": { "phpunit/phpunit": "^10.0", - "vimeo/psalm": "^5.0", + "phpstan/phpstan": "^2.0", "squizlabs/php_codesniffer": "^3.7" }, "scripts": { "ci:composer-validate": "composer validate --no-check-all --no-check-lock --strict", "ci:lint": "find src tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l", - "ci:psalm": "./vendor/bin/psalm", + "ci:phpstan": "./vendor/bin/phpstan", "ci:sniff": "./vendor/bin/phpcs src tests", "ci:tests": "./vendor/bin/phpunit tests/", "ci:static": [ "@ci:composer-validate", "@ci:lint", - "@ci:psalm", + "@ci:phpstan", "@ci:sniff" ], "ci:dynamic": [ diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..d961f69 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,6 @@ + +parameters: + editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%' + level: 7 + paths: + - src diff --git a/psalm.xml b/psalm.xml deleted file mode 100644 index 1b5b0cf..0000000 --- a/psalm.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - -