diff --git a/analysis-baseline.toml b/analysis-baseline.toml index 155d7e3ca..0516c5328 100644 --- a/analysis-baseline.toml +++ b/analysis-baseline.toml @@ -270,12 +270,6 @@ code = "mixed-assignment" message = "Assigning `mixed` type to a variable may lead to unexpected behavior." count = 2 -[[issues]] -file = "src/FrameBuilder.php" -code = "reference-to-undefined-variable" -message = "Reference created from a previously undefined variable `$matches`." -count = 1 - [[issues]] file = "src/HttpClient/HttpClient.php" code = "deprecated-function" diff --git a/src/FrameBuilder.php b/src/FrameBuilder.php index c0c0d8564..913124a37 100644 --- a/src/FrameBuilder.php +++ b/src/FrameBuilder.php @@ -59,6 +59,8 @@ public function __construct(Options $options, RepresentationSerializerInterface */ public function buildFromBacktraceFrame(string $file, int $line, array $backtraceFrame): Frame { + $matches = []; + // The filename can be in any of these formats: // - // - () : eval()'d code