parent
349e5fe9b8
commit
d3e6a2d6f6
@ -96,7 +96,7 @@ class TwigDataCollector extends DataCollector implements LateDataCollectorInterf
|
||||
public function getProfile()
|
||||
{
|
||||
if (null === $this->profile) {
|
||||
if (PHP_VERSION_ID >= 70000) {
|
||||
if (\PHP_VERSION_ID >= 70000) {
|
||||
$this->profile = unserialize($this->data['profile'], array('allowed_classes' => array('Twig_Profiler_Profile', 'Twig\Profiler\Profile')));
|
||||
} else {
|
||||
$this->profile = unserialize($this->data['profile']);
|
||||
|
Reference in New Issue
Block a user