From 44e31d19a6e81eb6ede34ef40c5687247d6eaaf3 Mon Sep 17 00:00:00 2001 From: Fabien Villepinte Date: Sat, 4 Sep 2021 17:00:00 +0200 Subject: [PATCH] Fix undefined index --- src/DocBlock/Tags/InvalidTag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DocBlock/Tags/InvalidTag.php b/src/DocBlock/Tags/InvalidTag.php index 3b9984c..4e6abb8 100644 --- a/src/DocBlock/Tags/InvalidTag.php +++ b/src/DocBlock/Tags/InvalidTag.php @@ -87,7 +87,7 @@ final class InvalidTag implements Tag if (isset($trace[0]['args'])) { $trace = array_map( function (array $call): array { - $call['args'] = array_map([$this, 'flattenArguments'], $call['args']); + $call['args'] = array_map([$this, 'flattenArguments'], $call['args'] ?? []); return $call; },