'AMQPEnvelope' => array('Symfony\Component\VarDumper\Caster\AmqpCaster', 'castEnvelope'),
'ArrayObject' => array('Symfony\Component\VarDumper\Caster\SplCaster', 'castArrayObject'),
+ 'ArrayIterator' => array('Symfony\Component\VarDumper\Caster\SplCaster', 'castArrayIterator'),
'SplDoublyLinkedList' => array('Symfony\Component\VarDumper\Caster\SplCaster', 'castDoublyLinkedList'),
'SplFileInfo' => array('Symfony\Component\VarDumper\Caster\SplCaster', 'castFileInfo'),
'SplFileObject' => array('Symfony\Component\VarDumper\Caster\SplCaster', 'castFileObject'),
$casters = static::$defaultCasters;
}
$this->addCasters($casters);
- $this->useExt = extension_loaded('symfony_debug');
+ $this->useExt = \extension_loaded('symfony_debug');
}
/**
public function addCasters(array $casters)
{
foreach ($casters as $type => $callback) {
- $this->casters[strtolower($type)][] = is_string($callback) && false !== strpos($callback, '::') ? explode('::', $callback, 2) : $callback;
+ $this->casters[strtolower($type)][] = \is_string($callback) && false !== strpos($callback, '::') ? explode('::', $callback, 2) : $callback;
}
}
}
if ($this->prevErrorHandler) {
- return call_user_func($this->prevErrorHandler, $type, $msg, $file, $line, $context);
+ return \call_user_func($this->prevErrorHandler, $type, $msg, $file, $line, $context);
}
return false;