Skip to content

Commit

Permalink
Merge pull request #75 from geekwright/xmf-debug-kint-3
Browse files Browse the repository at this point in the history
Update Debug for Kint 3.3
  • Loading branch information
geekwright authored Feb 14, 2021
2 parents b842b55 + 2807e08 commit beefd06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4

matrix:
allow_failures:
Expand Down
8 changes: 6 additions & 2 deletions src/Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ private static function doOnce()
$class = get_called_class();
parent::$aliases[] = [$class, 'dump'];
parent::$aliases[] = [$class, 'backtrace'];
parent::$enabled_mode = true;
parent::$mode_default = \Kint::MODE_RICH;
// display output inline ::folder = false, true puts all output at bottom of window
\Kint\Renderer\RichRenderer::$folder = false;
// options: 'original' (default), 'solarized', 'solarized-dark' and 'aante-light'
\Kint\Renderer\RichRenderer::$theme = 'aante-light.css';
}
}

Expand All @@ -53,8 +59,6 @@ public static function dump($data = null)
$args = func_get_args();

static::doOnce();
// options: 'original' (default), 'solarized', 'solarized-dark' and 'aante-light'
\Kint_Renderer_Rich::$theme = 'aante-light.css';
forward_static_call_array(array('parent', 'dump'), $args);
}

Expand Down

0 comments on commit beefd06

Please sign in to comment.