mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixed warnings in stack trace element when no stack args are set.
This commit is contained in:
parent
2c55c7c193
commit
cc9b445ece
1 changed files with 6 additions and 4 deletions
|
@ -41,10 +41,12 @@ App::uses('Debugger', 'Utility');
|
|||
echo ' → ';
|
||||
if ($stack['function']):
|
||||
$args = array();
|
||||
foreach ($stack['args'] as $arg):
|
||||
if (!empty($stack['args'])):
|
||||
foreach ((array)$stack['args'] as $arg):
|
||||
$args[] = Debugger::getType($arg);
|
||||
$params[] = Debugger::exportVar($arg, 2);
|
||||
endforeach;
|
||||
endif;
|
||||
|
||||
$called = isset($stack['class']) ? $stack['class'] . $stack['type'] . $stack['function'] : $stack['function'];
|
||||
|
||||
|
|
Loading…
Reference in a new issue