From 86b00f0d900c7e15d3341e687e0df89e8c2d4632 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Wed, 3 Jul 2024 00:24:30 +0200 Subject: [PATCH] PHPUnitExtension: denies path 'vendor/phpunit' to prevent an error "PHP Fatal error: Non-readonly class PHPUnit\Event\TestSuite\TestSuiteForTestClass cannot extend readonly class PHPUnit\Event\TestSuite\TestSuite" --- src/PHPUnitExtension.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PHPUnitExtension.php b/src/PHPUnitExtension.php index a61c43f..41c3529 100644 --- a/src/PHPUnitExtension.php +++ b/src/PHPUnitExtension.php @@ -19,6 +19,9 @@ public function bootstrap( ParameterCollection $parameters ): void { + BypassFinals::denyPaths([ + '*/vendor/phpunit/*', + ]); BypassFinals::enable(); } }