fix
This commit is contained in:
+8
-12
@@ -30,13 +30,13 @@ if (!\function_exists('d')) {
|
||||
/**
|
||||
* Alias of Kint::dump().
|
||||
*
|
||||
* @param mixed ...$args
|
||||
*
|
||||
* @return int|string
|
||||
*/
|
||||
function d()
|
||||
function d(...$args)
|
||||
{
|
||||
$args = \func_get_args();
|
||||
|
||||
return \call_user_func_array(['Kint', 'dump'], $args);
|
||||
return Kint::dump(...$args);
|
||||
}
|
||||
|
||||
Kint::$aliases[] = 'd';
|
||||
@@ -49,16 +49,13 @@ if (!\function_exists('s')) {
|
||||
* Alias of Kint::dump(), however the output is in plain htmlescaped text
|
||||
* with some minor visibility enhancements added.
|
||||
*
|
||||
* If run in CLI mode, output is not escaped.
|
||||
* If run in CLI colors are disabled
|
||||
*
|
||||
* To force rendering mode without autodetecting anything:
|
||||
*
|
||||
* Kint::$enabled_mode = Kint::MODE_PLAIN;
|
||||
* Kint::dump( $variable );
|
||||
* @param mixed ...$args
|
||||
*
|
||||
* @return int|string
|
||||
*/
|
||||
function s()
|
||||
function s(...$args)
|
||||
{
|
||||
if (false === Kint::$enabled_mode) {
|
||||
return 0;
|
||||
@@ -77,8 +74,7 @@ if (!\function_exists('s')) {
|
||||
|
||||
CliRenderer::$cli_colors = false;
|
||||
|
||||
$args = \func_get_args();
|
||||
$out = \call_user_func_array(['Kint', 'dump'], $args);
|
||||
$out = Kint::dump(...$args);
|
||||
|
||||
Kint::$enabled_mode = $kstash;
|
||||
CliRenderer::$cli_colors = $cstash;
|
||||
|
||||
Reference in New Issue
Block a user