From fd2bcb12d63205c3ca4108aa201f6c55c4f9eefb Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 24 Feb 2026 10:36:40 +0100 Subject: [PATCH 1/2] Downgrade RunInSeparateProcess attribute --- .../DowngradePhpunitAttributesVisitor.php | 1 + .../DowngradePhpunitAttributesVisitorTest.php | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/src/Visitor/DowngradePhpunitAttributesVisitor.php b/src/Visitor/DowngradePhpunitAttributesVisitor.php index d610b8d..03cc0b8 100644 --- a/src/Visitor/DowngradePhpunitAttributesVisitor.php +++ b/src/Visitor/DowngradePhpunitAttributesVisitor.php @@ -41,6 +41,7 @@ public function enterNode(Node $node) 'PHPUnit\Framework\Attributes\DataProvider' => '@dataProvider', 'PHPUnit\Framework\Attributes\RequiresPhp' => '@requires', 'PHPUnit\Framework\Attributes\CoversNothing' => '@coversNothing', + 'PHPUnit\Framework\Attributes\RunInSeparateProcess' => '@runInSeparateProcess', ]; foreach ($attrGroups as $i => $attrGroup) { diff --git a/tests/Visitor/DowngradePhpunitAttributesVisitorTest.php b/tests/Visitor/DowngradePhpunitAttributesVisitorTest.php index e370ece..fe295d4 100644 --- a/tests/Visitor/DowngradePhpunitAttributesVisitorTest.php +++ b/tests/Visitor/DowngradePhpunitAttributesVisitorTest.php @@ -103,6 +103,29 @@ class Foo { } PHP +, + ]; + + yield [ + <<<'PHP' + Date: Tue, 24 Feb 2026 10:38:49 +0100 Subject: [PATCH 2/2] Update phpstan-baseline.neon --- phpstan-baseline.neon | 6 ------ 1 file changed, 6 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 803ff23..4e12a67 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -12,12 +12,6 @@ parameters: count: 1 path: src/Console/DowngradeCommand.php - - - message: '#^Access to property \$text of internal class Symfony\\Polyfill\\Php80\\PhpToken from outside its root namespace Symfony\.$#' - identifier: property.internalClass - count: 2 - path: src/Php/FollowedByCommaAnalyser.php - - message: '#^Call to method getTokenCode\(\) of internal class PhpParser\\Internal\\TokenStream from outside its root namespace PhpParser\.$#' identifier: method.internalClass