Skip to content

Commit 0f85ed0

Browse files
committed
Use getLineNo() not getLineNumber() as replacement for property access
This will ensure unchanged behaviour. `getLineNumber()` will return `null` instead of `0`.
1 parent 23a56e5 commit 0f85ed0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/RuleSet/DeclarationBlock.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,8 @@ public function expandBackgroundShorthand()
434434
'background-repeat' => ['repeat'],
435435
'background-attachment' => ['scroll'],
436436
'background-position' => [
437-
new Size(0, '%', false, $this->getLineNumber()),
438-
new Size(0, '%', false, $this->getLineNumber()),
437+
new Size(0, '%', false, $this->getLineNo()),
438+
new Size(0, '%', false, $this->getLineNo()),
439439
],
440440
];
441441
$mRuleValue = $oRule->getValue();
@@ -801,7 +801,7 @@ public function createFontShorthand()
801801
$aLHValues = $mRuleValue->getListComponents();
802802
}
803803
if ($aLHValues[0] !== 'normal') {
804-
$val = new RuleValueList('/', $this->getLineNumber());
804+
$val = new RuleValueList('/', $this->getLineNo());
805805
$val->addListComponent($aFSValues[0]);
806806
$val->addListComponent($aLHValues[0]);
807807
$oNewRule->addValue($val);
@@ -817,7 +817,7 @@ public function createFontShorthand()
817817
} else {
818818
$aFFValues = $mRuleValue->getListComponents();
819819
}
820-
$oFFValue = new RuleValueList(',', $this->getLineNumber());
820+
$oFFValue = new RuleValueList(',', $this->getLineNo());
821821
$oFFValue->setListComponents($aFFValues);
822822
$oNewRule->addValue($oFFValue);
823823

0 commit comments

Comments
 (0)