From 660ec97a3072ac063622edf65f040b7135fdf647 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sat, 19 Jun 2021 09:59:45 +0200 Subject: [PATCH] Fix accessing an undefined variable in `ParserTest` --- phpstan-baseline.neon | 5 ----- tests/ParserTest.php | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index f6559058..2403c878 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -25,8 +25,3 @@ parameters: count: 1 path: src/Value/CalcRuleValueList.php - - - message: "#^Variable \\$aActualColorLines might not be defined\\.$#" - count: 1 - path: tests/ParserTest.php - diff --git a/tests/ParserTest.php b/tests/ParserTest.php index bf40f410..cc6a9575 100644 --- a/tests/ParserTest.php +++ b/tests/ParserTest.php @@ -858,6 +858,7 @@ public function testLineNumbersParsing() $oColor = $aRules[1]->getValue(); $this->assertEquals(27, $aRules[1]->getLineNo()); + $aActualColorLines = []; foreach ($oColor->getColor() as $oSize) { $aActualColorLines[] = $oSize->getLineNo(); }