From c1918be545862d24168b96c87130fc66a5fd537d Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 9 Dec 2025 21:14:55 +0100 Subject: [PATCH] upgrade to phpstan/phpstan-phpunit 2.0.10 --- composer.lock | 13 ++++++------- .../Rules/Types/InvalidTypesInUnionRuleTest.php | 4 ++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/composer.lock b/composer.lock index 523e9541e2..8309df4662 100644 --- a/composer.lock +++ b/composer.lock @@ -4936,16 +4936,16 @@ }, { "name": "phpstan/phpstan-phpunit", - "version": "2.0.x-dev", + "version": "2.0.10", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-phpunit.git", - "reference": "033f6906f7abc5acbe3c81b642ad9e363e1bb4a0" + "reference": "8d61a5854e7497d95bc85188e13537e99bd7aae7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/033f6906f7abc5acbe3c81b642ad9e363e1bb4a0", - "reference": "033f6906f7abc5acbe3c81b642ad9e363e1bb4a0", + "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/8d61a5854e7497d95bc85188e13537e99bd7aae7", + "reference": "8d61a5854e7497d95bc85188e13537e99bd7aae7", "shasum": "" }, "require": { @@ -4962,7 +4962,6 @@ "phpstan/phpstan-strict-rules": "^2.0", "phpunit/phpunit": "^9.6" }, - "default-branch": true, "type": "phpstan-extension", "extra": { "phpstan": { @@ -4984,9 +4983,9 @@ "description": "PHPUnit extensions and rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-phpunit/issues", - "source": "https://github.com/phpstan/phpstan-phpunit/tree/2.0.x" + "source": "https://github.com/phpstan/phpstan-phpunit/tree/2.0.10" }, - "time": "2025-10-29T08:37:09+00:00" + "time": "2025-12-06T11:15:39+00:00" }, { "name": "phpstan/phpstan-strict-rules", diff --git a/tests/PHPStan/Rules/Types/InvalidTypesInUnionRuleTest.php b/tests/PHPStan/Rules/Types/InvalidTypesInUnionRuleTest.php index 5859945f2b..3bd9e3a10b 100644 --- a/tests/PHPStan/Rules/Types/InvalidTypesInUnionRuleTest.php +++ b/tests/PHPStan/Rules/Types/InvalidTypesInUnionRuleTest.php @@ -31,7 +31,7 @@ public function testRuleOnUnionWithVoid(): void ]); } - #[RequiresPhp('8.0')] + #[RequiresPhp('>=8.0')] public function testRuleOnUnionWithMixed(): void { $this->analyse([__DIR__ . '/data/invalid-union-with-mixed.php'], [ @@ -70,7 +70,7 @@ public function testRuleOnUnionWithMixed(): void ]); } - #[RequiresPhp('8.1')] + #[RequiresPhp('>=8.1')] public function testRuleOnUnionWithNever(): void { $this->analyse([__DIR__ . '/data/invalid-union-with-never.php'], [