Skip to content

Commit

Permalink
PHPUnitExtension: denies path 'vendor/phpunit'
Browse files Browse the repository at this point in the history
to prevent an error "PHP Fatal error: Non-readonly class PHPUnit\Event\TestSuite\TestSuiteForTestClass cannot extend readonly class PHPUnit\Event\TestSuite\TestSuite"
  • Loading branch information
dg committed Jul 2, 2024
1 parent 4cd38c1 commit 86b00f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PHPUnitExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ public function bootstrap(
ParameterCollection $parameters
): void
{
BypassFinals::denyPaths([
'*/vendor/phpunit/*',
]);
BypassFinals::enable();
}
}

0 comments on commit 86b00f0

Please sign in to comment.