Skip to content

Commit 79dec78

Browse files
committed
Add missing constructor parameter when instantiating CssList
1 parent 0071230 commit 79dec78

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lib/Sabberworm/CSS/CSSList/CSSList.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Sabberworm\CSS\RuleSet\AtRuleSet;
1616
use Sabberworm\CSS\RuleSet\DeclarationBlock;
1717
use Sabberworm\CSS\RuleSet\RuleSet;
18+
use Sabberworm\CSS\Settings;
1819
use Sabberworm\CSS\Value\CSSString;
1920
use Sabberworm\CSS\Value\URL;
2021
use Sabberworm\CSS\Value\Value;
@@ -54,7 +55,7 @@ public static function parseList(ParserState $oParserState, CSSList $oList)
5455
{
5556
$bIsRoot = $oList instanceof Document;
5657
if (is_string($oParserState)) {
57-
$oParserState = new ParserState($oParserState);
58+
$oParserState = new ParserState($oParserState, Settings::create());
5859
}
5960
$bLenientParsing = $oParserState->getSettings()->bLenientParsing;
6061
while (!$oParserState->isEnd()) {

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
parameters:
22
ignoreErrors:
3-
-
4-
message: "#^Class Sabberworm\\\\CSS\\\\Parsing\\\\ParserState constructor invoked with 1 parameter, 2\\-3 required\\.$#"
5-
count: 1
6-
path: lib/Sabberworm/CSS/CSSList/CSSList.php
7-
83
-
94
message: "#^Access to an undefined property Sabberworm\\\\CSS\\\\Parsing\\\\ParserState\\:\\:\\$oParserHelper\\.$#"
105
count: 1

0 commit comments

Comments
 (0)