Last active
December 20, 2019 03:52
-
-
Save joemaller/8f656af9ba620b0cb689e0cc012fc361 to your computer and use it in GitHub Desktop.
snippet for dumping Kint-php to error_log as ANSI text, then resetting Kint back to normal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// DEBUG | |
\Kint::$mode_default = \Kint::MODE_CLI; | |
error_log(@d($val)); | |
\Kint::$mode_default = \Kint::MODE_RICH; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment