fixed wrong usage of unset()
This commit is contained in:
parent
b591419631
commit
4135f6803b
@ -119,7 +119,7 @@ class ErrorHandler
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
unset($this->reservedMemory);
|
$this->reservedMemory = '';
|
||||||
$type = $error['type'];
|
$type = $error['type'];
|
||||||
if (0 === $this->level || !in_array($type, array(E_ERROR, E_CORE_ERROR, E_COMPILE_ERROR, E_PARSE))) {
|
if (0 === $this->level || !in_array($type, array(E_ERROR, E_CORE_ERROR, E_COMPILE_ERROR, E_PARSE))) {
|
||||||
return;
|
return;
|
||||||
|
@ -136,7 +136,7 @@ class ProfilerListener implements EventSubscriberInterface
|
|||||||
if ($master) {
|
if ($master) {
|
||||||
$this->saveProfiles($profile);
|
$this->saveProfiles($profile);
|
||||||
|
|
||||||
unset($this->children);
|
$this->children = new \SplObjectStorage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user