Skip to content

Commit 96c5668

Browse files
Merge branch '3.4'
* 3.4: fix serialized deprecations handling
2 parents 4198ad3 + 3f0a3f5 commit 96c5668

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ public function endTest($test, $time)
251251
}
252252

253253
if ($this->runsInSeparateProcess) {
254-
foreach (unserialize(file_get_contents($this->runsInSeparateProcess)) as $deprecation) {
254+
$deprecations = file_get_contents($this->runsInSeparateProcess);
255+
unlink($this->runsInSeparateProcess);
256+
foreach ($deprecations ? unserialize($deprecations) : array() as $deprecation) {
255257
if ($deprecation[0]) {
256258
trigger_error($deprecation[1], E_USER_DEPRECATED);
257259
} else {

0 commit comments

Comments
 (0)