/var/www/vhosts/ihelp.ro/httpdocs/vendor/mirko-pagliai/php-tools/src
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/mirko-pagliai/php-tools/src/debug_functions.php (2320B)
key_exists('file', $current)));
$key = array_search(__FILE__, array_column($backtrace, 'file'));
$key = $key ? (int)$key - 1 : count($backtrace) - 3;
$lineInfo = sprintf('%s (line %s)', $backtrace[$key]['file'] ?? '', $backtrace[$key]['line'] ?? 0);
$dumper = new CliDumper();
printf($template, $lineInfo, $dumper->dump($cloner->cloneVar($var), true));
} else {
$dumper = new HtmlDumper();
$dumper->dump($cloner->cloneVar($var));
}
});
if (!function_exists('debug') && function_exists('dump')) {
/**
* Prints out debug information about given variable.
*
* Alias for the `dump()` global function provided by `VarDumper` component.
* @param mixed $var Variable you want to debug
* @return void
* @link https://symfony.com/doc/current/components/var_dumper.html#the-dump-function
* @since 1.2.11
*/
function debug($var): void
{
call_user_func('dump', $var);
}
}
if (!function_exists('dd') && function_exists('dump')) {
/**
* Prints out debug information about given variable and dies
* @param mixed $var Variable you want to debug
* @return void
* @since 1.2.11
*/
function dd($var): void
{
call_user_func('dump', $var);
die(1);
}
}