/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src
NameSizeModeActions
Auth/-0755rm
Cache/-0755rm
Collection/-0755rm
Command/-0755rm
Console/-0755rm
Controller/-0755rm
Core/-0755rm
Database/-0755rm
Datasource/-0755rm
Error/-0755rm
Event/-0755rm
Filesystem/-0755rm
Form/-0755rm
Http/-0755rm
I18n/-0755rm
Log/-0755rm
Mailer/-0755rm
Network/-0755rm
ORM/-0755rm
Routing/-0755rm
Shell/-0755rm
TestSuite/-0755rm
Utility/-0755rm
Validation/-0755rm
View/-0755rm
basics.php47970644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/basics.php (4797B)
1, 'depth' => 2, 'format' => 'array']); /** @psalm-suppress PossiblyInvalidArrayOffset */ $location = [ 'line' => $trace[0]['line'], 'file' => $trace[0]['file'], ]; } Debugger::printVar($var, $location, $showHtml); return $var; } } if (!function_exists('stackTrace')) { /** * Outputs a stack trace based on the supplied options. * * ### Options * * - `depth` - The number of stack frames to return. Defaults to 999 * - `args` - Should arguments for functions be shown? If true, the arguments for each method call * will be displayed. * - `start` - The stack frame to start generating a trace from. Defaults to 1 * * @param array $options Format for outputting stack trace * @return void */ function stackTrace(array $options = []): void { if (!Configure::read('debug')) { return; } $options += ['start' => 0]; $options['start']++; /** @var string $trace */ $trace = Debugger::trace($options); echo $trace; } } if (!function_exists('breakpoint')) { /** * Command to return the eval-able code to startup PsySH in interactive debugger * Works the same way as eval(\Psy\sh()); * psy/psysh must be loaded in your project * * ``` * eval(breakpoint()); * ``` * * @return string|null * @link https://psysh.org/ */ function breakpoint(): ?string { if ((PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') && class_exists(PsyShell::class)) { return 'extract(\Psy\Shell::debug(get_defined_vars(), isset($this) ? $this : null));'; } trigger_error( 'psy/psysh must be installed and you must be in a CLI environment to use the breakpoint function', E_USER_WARNING ); return null; } } if (!function_exists('dd')) { /** * Prints out debug information about given variable and dies. * * Only runs if debug mode is enabled. * It will otherwise just continue code execution and ignore this function. * * @param mixed $var Variable to show debug information for. * @param bool|null $showHtml If set to true, the method prints the debug data in a browser-friendly way. * @return void * @link https://book.cakephp.org/4/en/development/debugging.html#basic-debugging */ function dd($var, $showHtml = null): void { if (!Configure::read('debug')) { return; } $trace = Debugger::trace(['start' => 1, 'depth' => 2, 'format' => 'array']); /** @psalm-suppress PossiblyInvalidArrayOffset */ $location = [ 'line' => $trace[0]['line'], 'file' => $trace[0]['file'], ]; Debugger::printVar($var, $location, $showHtml); die(1); } }