Skip to content
This repository was archived by the owner on Sep 10, 2022. It is now read-only.

Commit 6e65e00

Browse files
committed
Allow line num to be initialized in the Parser contructor
1 parent 173c7ae commit 6e65e00

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Sabberworm/CSS/Parser.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ class Parser {
3434
private $iLength;
3535
private $blockRules;
3636
private $aSizeUnits;
37-
private $iLineNum = 1;
37+
private $iLineNum;
3838

39-
public function __construct($sText, Settings $oParserSettings = null) {
39+
public function __construct($sText, Settings $oParserSettings = null, $iLineNum = 0) {
4040
$this->sText = $sText;
4141
$this->iCurrentPosition = 0;
42+
$this->iLineNum = $iLineNum;
4243
if ($oParserSettings === null) {
4344
$oParserSettings = Settings::create();
4445
}

0 commit comments

Comments
 (0)