Merge branch '3.3' into 3.4

* 3.3:
  fix serialized deprecations handling
This commit is contained in:
Nicolas Grekas 2017-10-13 16:15:09 +02:00
commit 3f0a3f58a6
1 changed files with 3 additions and 1 deletions

View File

@ -260,7 +260,9 @@ class SymfonyTestsListenerTrait
}
if ($this->runsInSeparateProcess) {
foreach (unserialize(file_get_contents($this->runsInSeparateProcess)) as $deprecation) {
$deprecations = file_get_contents($this->runsInSeparateProcess);
unlink($this->runsInSeparateProcess);
foreach ($deprecations ? unserialize($deprecations) : array() as $deprecation) {
if ($deprecation[0]) {
trigger_error($deprecation[1], E_USER_DEPRECATED);
} else {