Skip to content

properly namespacing reflection classes #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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