Skip to content
Permalink
Browse files

Dumper: key can be empty string

  • Loading branch information...
dg committed Feb 16, 2019
1 parent 7317548 commit 1e7351829190bd07db8cf7d5ac326937dec6a50c
Showing with 1 addition and 1 deletion.
  1. +1 βˆ’1 src/Framework/Dumper.php
@@ -217,7 +217,7 @@ private static function _toPhp(&$var, array &$list = [], int $level = 0, int &$l
$used = $line;
$line++;
foreach ($arr as $k => &$v) {
if ($k[0] === "\x00") {
if (isset($k[0]) && $k[0] === "\x00") {
$k = substr($k, strrpos($k, "\x00") + 1);
}
$out .= "$space\t" . self::_toPhp($k, $list, $level + 1, $line) . ' => ' . self::_toPhp($v, $list, $level + 1, $line) . ",\n";

0 comments on commit 1e73518

Please sign in to comment.
You can’t perform that action at this time.