We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f7dd50 + b36f023 commit b0d98a2Copy full SHA for b0d98a2
1 file changed
src/Runner/PhptTestCase.php
@@ -659,7 +659,14 @@ private function cleanupForCoverage(): RawCodeCoverageData
659
}
660
661
if ($buffer !== false) {
662
- $coverage = @unserialize($buffer, ['allowed_classes' => false]);
+ $coverage = @unserialize(
663
+ $buffer,
664
+ [
665
+ 'allowed_classes' => [
666
+ RawCodeCoverageData::class,
667
+ ],
668
669
+ );
670
671
if ($coverage === false) {
672
$coverage = RawCodeCoverageData::fromXdebugWithoutPathCoverage([]);
0 commit comments