diff --git a/.circleci/config.yml b/.circleci/config.yml index 02250f9..4de99cf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,7 +24,6 @@ jobs: - run: name: Composer install packages command: | - composer update composer install --prefer-source - run: name: PHPUnit diff --git a/src/_tree.php b/src/_tree.php index 1f97923..de25aac 100644 --- a/src/_tree.php +++ b/src/_tree.php @@ -34,7 +34,6 @@ public static function getInstance() } } - /** * CLI Render * @@ -77,6 +76,8 @@ public function render(array $tree, $level = 0) if (!is_array($next)) { if (is_object($next) && !method_exists($next, '__string')) { $content = ': ' . get_class($next); + } else if (is_string($next)) { + $content = ': ' . $next; } else { $content = ': ' . var_export($next, true); }