Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3f0a3f5

Browse filesBrowse files
Merge branch '3.3' into 3.4
* 3.3: fix serialized deprecations handling
2 parents 2c18da7 + be9382a commit 3f0a3f5
Copy full SHA for 3f0a3f5

File tree

1 file changed

+3
-1
lines changed
Filter options

1 file changed

+3
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,9 @@ public function endTest($test, $time)
260260
}
261261

262262
if ($this->runsInSeparateProcess) {
263-
foreach (unserialize(file_get_contents($this->runsInSeparateProcess)) as $deprecation) {
263+
$deprecations = file_get_contents($this->runsInSeparateProcess);
264+
unlink($this->runsInSeparateProcess);
265+
foreach ($deprecations ? unserialize($deprecations) : array() as $deprecation) {
264266
if ($deprecation[0]) {
265267
trigger_error($deprecation[1], E_USER_DEPRECATED);
266268
} else {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.