mirror of https://github.com/rectorphp/rector.git
45 lines
1.0 KiB
PHP
45 lines
1.0 KiB
PHP
<?php
|
|
|
|
/**
|
|
* This file is part of the Tracy (https://tracy.nette.org)
|
|
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
|
|
*/
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix202302;
|
|
|
|
if (!\function_exists('RectorPrefix202302\\dump')) {
|
|
/**
|
|
* Tracy\Debugger::dump() shortcut.
|
|
* @tracySkipLocation
|
|
*/
|
|
function dump($var)
|
|
{
|
|
\array_map([Tracy\Debugger::class, 'dump'], \func_get_args());
|
|
return $var;
|
|
}
|
|
}
|
|
if (!\function_exists('RectorPrefix202302\\dumpe')) {
|
|
/**
|
|
* Tracy\Debugger::dump() & exit shortcut.
|
|
* @tracySkipLocation
|
|
*/
|
|
function dumpe($var) : void
|
|
{
|
|
\array_map([Tracy\Debugger::class, 'dump'], \func_get_args());
|
|
if (!Tracy\Debugger::$productionMode) {
|
|
exit;
|
|
}
|
|
}
|
|
}
|
|
if (!\function_exists('RectorPrefix202302\\bdump')) {
|
|
/**
|
|
* Tracy\Debugger::barDump() shortcut.
|
|
* @tracySkipLocation
|
|
*/
|
|
function bdump($var)
|
|
{
|
|
Tracy\Debugger::barDump(...\func_get_args());
|
|
return $var;
|
|
}
|
|
}
|