Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ChromePhp.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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';
}

Expand All @@ -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()) {
Expand Down