Skip to content

Commit adcffd6

Browse files
committed
PHP 7.4 fix - Check if 'args' key exists, if not, use an empty array.
1 parent e6166a8 commit adcffd6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/DocBlock/Tags/InvalidTag.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ static function (&$value) : void {
104104
do {
105105
$trace = array_map(
106106
static function (array $call) use ($flatten) : array {
107-
$call += ['args' => []];
108-
array_walk_recursive($call['args'], $flatten);
107+
array_walk_recursive($call['args'] ?? [], $flatten);
109108

110109
return $call;
111110
},

0 commit comments

Comments
 (0)