Skip to content

Commit b0d98a2

Browse files
Merge branch '9.6' into 10.5
* 9.6: Fix regression introduced in PHPUnit 9.6.33
2 parents 3f7dd50 + b36f023 commit b0d98a2

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/Runner/PhptTestCase.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,14 @@ private function cleanupForCoverage(): RawCodeCoverageData
659659
}
660660

661661
if ($buffer !== false) {
662-
$coverage = @unserialize($buffer, ['allowed_classes' => false]);
662+
$coverage = @unserialize(
663+
$buffer,
664+
[
665+
'allowed_classes' => [
666+
RawCodeCoverageData::class,
667+
],
668+
],
669+
);
663670

664671
if ($coverage === false) {
665672
$coverage = RawCodeCoverageData::fromXdebugWithoutPathCoverage([]);

0 commit comments

Comments
 (0)