Skip to content

Commit 1c6203a

Browse files
committed
PHP 7.4 fix - Create a temporary variable to prevent Fatal error.
1 parent adcffd6 commit 1c6203a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/DocBlock/Tags/InvalidTag.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ static function (&$value) : void {
104104
do {
105105
$trace = array_map(
106106
static function (array $call) use ($flatten) : array {
107-
array_walk_recursive($call['args'] ?? [], $flatten);
107+
$args = $call['args'] ?? [];
108+
109+
array_walk_recursive($args, $flatten);
108110

109111
return $call;
110112
},

0 commit comments

Comments
 (0)