Skip to content

Commit 660ec97

Browse files
committed
Fix accessing an undefined variable in ParserTest
1 parent d9fc105 commit 660ec97

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,3 @@ parameters:
2525
count: 1
2626
path: src/Value/CalcRuleValueList.php
2727

28-
-
29-
message: "#^Variable \\$aActualColorLines might not be defined\\.$#"
30-
count: 1
31-
path: tests/ParserTest.php
32-

tests/ParserTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,7 @@ public function testLineNumbersParsing()
858858
$oColor = $aRules[1]->getValue();
859859
$this->assertEquals(27, $aRules[1]->getLineNo());
860860

861+
$aActualColorLines = [];
861862
foreach ($oColor->getColor() as $oSize) {
862863
$aActualColorLines[] = $oSize->getLineNo();
863864
}

0 commit comments

Comments
 (0)