Skip to content

Commit e2ce1d2

Browse files
authored
Merge pull request #202 from drupol/fix-for-php74
PHP 7.4 fix - Ensure the existence of the 'args' key.
2 parents 1ef2c9d + 91307e3 commit e2ce1d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DocBlock/Tags/InvalidTag.php

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

109111
return $call;

0 commit comments

Comments
 (0)