Skip to content

Commit

Permalink
Only output _loaded if it exists.
Browse files Browse the repository at this point in the history
Refs #7604
  • Loading branch information
markstory committed Oct 25, 2015
1 parent 342fe9f commit 353dcbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Core/ObjectRegistry.php
Expand Up @@ -316,7 +316,9 @@ public function unload($objectName)
public function __debugInfo()
{
$properties = get_object_vars($this);
$properties['_loaded'] = array_keys($properties['_loaded']);
if (isset($properties['_loaded'])) {
$properties['_loaded'] = array_keys($properties['_loaded']);
}
return $properties;
}
}

0 comments on commit 353dcbe

Please sign in to comment.