Merge branch '3.3' into 3.4
* 3.3: fix serialized deprecations handling
This commit is contained in:
commit
3f0a3f58a6
|
@ -260,7 +260,9 @@ class SymfonyTestsListenerTrait
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->runsInSeparateProcess) {
|
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]) {
|
if ($deprecation[0]) {
|
||||||
trigger_error($deprecation[1], E_USER_DEPRECATED);
|
trigger_error($deprecation[1], E_USER_DEPRECATED);
|
||||||
} else {
|
} else {
|
||||||
|
|
Reference in New Issue