minor #23043 add \ to PHP_VERSION_ID fixes #22650

This commit is contained in:
Vincent AUBERT 2017-06-02 19:45:13 +02:00 committed by Fabien Potencier
parent 349e5fe9b8
commit d3e6a2d6f6

View File

@ -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']);