From 8885e45003e88c3a1cfb7a7e23b1dc871cc93709 Mon Sep 17 00:00:00 2001 From: otsch Date: Thu, 24 Oct 2024 23:45:30 +0200 Subject: [PATCH] Upgrade to PEST 3 for newer PHP versions --- composer.json | 3 +-- phpstan.neon | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index d857acd..2de60c9 100644 --- a/composer.json +++ b/composer.json @@ -39,8 +39,7 @@ "require-dev": { "friendsofphp/php-cs-fixer": "^3.4", "phpstan/phpstan": "^1.8", - "pestphp/pest": "^1.22", - "pestphp/pest-plugin-parallel": "^1.2" + "pestphp/pest": "^2.0|^3.0" }, "autoload": { "psr-4": { diff --git a/phpstan.neon b/phpstan.neon index a5349ed..a6cefe9 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -3,5 +3,8 @@ parameters: paths: - src - tests + reportUnmatchedIgnoredErrors: false ignoreErrors: - "#^Call to an undefined method Pest\\\\Expectation\\|Pest\\\\Support\\\\Extendable\\:\\:\\S+\\(\\)\\.$#" + - "#^Call to an undefined method Pest\\\\Expectation\\:\\:query(String|Array)?\\(\\)\\.$#" + - "#^Call to protected method [a-zA-Z]{5,30}\\(\\) of class PHPUnit\\\\Framework\\\\TestCase.#"