From aa2c6bf1294c7c53d681ead48a60eae527d85387 Mon Sep 17 00:00:00 2001 From: Sander Muller Date: Mon, 3 Aug 2026 14:05:43 +0200 Subject: [PATCH] Use a complete version constraint in FiniteTypeSetTest's RequiresPhp attribute `#[RequiresPhp('^8.1')]` is flagged by phpstan-phpunit's phpunit.attributeRequiresPhpVersion rule: the caret is not one of the operators the rule accepts and `8.1` is a two-part (incomplete) version. That makes the Infection job's initial static-analysis run fail on every PR branched off 2.2.x. Use `>= 8.1.0`, the form used everywhere else in the test suite. Co-Authored-By: Claude Opus 4.8 (1M context) --- tests/PHPStan/Type/FiniteTypeSetTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/PHPStan/Type/FiniteTypeSetTest.php b/tests/PHPStan/Type/FiniteTypeSetTest.php index aceb991090..c3fae75fe6 100644 --- a/tests/PHPStan/Type/FiniteTypeSetTest.php +++ b/tests/PHPStan/Type/FiniteTypeSetTest.php @@ -31,7 +31,7 @@ * self-analysis excludes those files below PHP 8.1, and a ::class would have PHPStan report * them as unknown classes there. */ -#[RequiresPhp('^8.1')] +#[RequiresPhp('>= 8.1.0')] class FiniteTypeSetTest extends PHPStanTestCase {