Allow inheritance
This commit is contained in:
parent
3d5aab3fdc
commit
b6735b1930
2 changed files with 4 additions and 2 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
composer.phar
|
||||
vendor/
|
4
dBug.php
Executable file → Normal file
4
dBug.php
Executable file → Normal file
|
@ -52,7 +52,7 @@ class dBug
|
|||
//include js and css scripts
|
||||
if (!defined('BDBUGINIT')) {
|
||||
define('BDBUGINIT', TRUE);
|
||||
self::initJSandCSS();
|
||||
static::initJSandCSS();
|
||||
}
|
||||
$arrAccept=array("array",'object',"xml"); //array of variable types that can be "forced"
|
||||
$this->bCollapsed = $bCollapsed;
|
||||
|
@ -633,7 +633,7 @@ class dBug
|
|||
echo '<tr><td></td></tr>';
|
||||
if (extension_loaded('Reflection')) {
|
||||
$refl=new \ReflectionObject($var);
|
||||
$props=$refl->getProperties(ReflectionProperty::IS_PROTECTED|ReflectionProperty::IS_PRIVATE);
|
||||
$props=$refl->getProperties(\ReflectionProperty::IS_PROTECTED|\ReflectionProperty::IS_PRIVATE);
|
||||
foreach ($props as &$prop) {
|
||||
$pname=$prop->getName();
|
||||
if(in_array($pname,static::$exceptionMainProps)||in_array($pname,static::$exceptionExcludedProps))continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue