Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mmucklo/krumo
Browse files Browse the repository at this point in the history
  • Loading branch information
scottchiefbaker committed Aug 1, 2022
2 parents d2060a4 + c2972cc commit 1dfc2be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions class.krumo.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,9 @@ public static function dump($data, $second = '')
$_ = debug_backtrace();
while ($d = array_pop($_)) {
$callback = static::$lineNumberTestCallback;
$function = strToLower($d['function']);
if (in_array($function, array("krumo","k","kd")) || (strToLower(@$d['class']) == 'krumo') || (is_callable($callback) && call_user_func($callback, $d))) {
$class = strtolower($d['class'] ?? '');
$function = strtolower($d['function'] ?? '');
if (in_array($function, array('krumo','k','kd')) || $class == 'krumo' || (is_callable($callback) && call_user_func($callback, $d))) {
break;
}
}
Expand Down Expand Up @@ -1607,7 +1608,7 @@ private static function cli_dump() {
}

foreach ($args as $i) {
$out = var_export($i);
$out = var_export($i) ?? '';
print trim($out);

if (sizeof($args) >= 1) {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
],
"require": {
"php": ">=5.2.17"
"php": ">=7.0"
},
"require-dev": {
"fabpot/php-cs-fixer": "dev-master",
Expand Down

0 comments on commit 1dfc2be

Please sign in to comment.