Skip to content

Commit 8cd358a

Browse files
committed
✨ PHP8: fix undefined array key
1 parent 7c662d8 commit 8cd358a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mouf/Mvc/Splash/Utils/ExceptionUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ private static function getHTMLBackTrace($backtrace)
2121
$str .= ((isset($step['class'])) ? htmlspecialchars($step['class'], ENT_NOQUOTES, 'UTF-8') : '').
2222
((isset($step['type'])) ? htmlspecialchars($step['type'], ENT_NOQUOTES, 'UTF-8') : '').htmlspecialchars($step['function'], ENT_NOQUOTES, 'UTF-8').'(';
2323

24-
if (is_array($step['args'])) {
24+
if (array_key_exists('args', $step) && is_array($step['args'])) {
2525
$drawn = false;
2626
$params = '';
2727
foreach ($step['args'] as $param) {

0 commit comments

Comments
 (0)