diff --git a/ChromePhp.php b/ChromePhp.php index 577b1ce..2130f65 100755 --- a/ChromePhp.php +++ b/ChromePhp.php @@ -307,7 +307,7 @@ protected function _convert($object) $object_as_array[$key] = $this->_convert($value); } - $reflection = new ReflectionClass($object); + $reflection = new \ReflectionClass($object); // loop through the properties and add those foreach ($reflection->getProperties() as $property) { @@ -324,7 +324,7 @@ protected function _convert($object) try { $value = $property->getValue($object); - } catch (ReflectionException $e) { + } catch (\ReflectionException $e) { $value = 'only PHP 5.3 can access private/protected properties'; } @@ -344,7 +344,7 @@ protected function _convert($object) * @param ReflectionProperty * @return string */ - protected function _getPropertyKey(ReflectionProperty $property) + protected function _getPropertyKey(\ReflectionProperty $property) { $static = $property->isStatic() ? ' static' : ''; if ($property->isPublic()) {