Skip to content

Commit d9ad684

Browse files
authored
Merge pull request #269 from oliverklee/bugfix/undefined-test
Fix accessing an undefined variable in `ParserTest`
2 parents 0080be3 + 660ec97 commit d9ad684

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
@@ -859,6 +859,7 @@ public function testLineNumbersParsing()
859859
$oColor = $aRules[1]->getValue();
860860
$this->assertEquals(27, $aRules[1]->getLineNo());
861861

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

0 commit comments

Comments
 (0)