File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change 1
1
parameters :
2
2
ignoreErrors :
3
- -
4
- message : ' #^Call to function is_string\(\) with Sabberworm\\CSS\\Parsing\\ParserState will always evaluate to false\.$#'
5
- identifier : function.impossibleType
6
- count : 1
7
- path : ../src/CSSList/CSSList.php
8
-
9
3
-
10
4
message : ' #^Loose comparison via "\=\=" is not allowed\.$#'
11
5
identifier : equal.notAllowed
Original file line number Diff line number Diff line change 21
21
use Sabberworm \CSS \RuleSet \AtRuleSet ;
22
22
use Sabberworm \CSS \RuleSet \DeclarationBlock ;
23
23
use Sabberworm \CSS \RuleSet \RuleSet ;
24
- use Sabberworm \CSS \Settings ;
25
24
use Sabberworm \CSS \Value \CSSString ;
26
25
use Sabberworm \CSS \Value \URL ;
27
26
use Sabberworm \CSS \Value \Value ;
@@ -64,9 +63,6 @@ public function __construct(?int $lineNumber = null)
64
63
public static function parseList (ParserState $ parserState , CSSList $ list ): void
65
64
{
66
65
$ isRoot = $ list instanceof Document;
67
- if (\is_string ($ parserState )) {
68
- $ parserState = new ParserState ($ parserState , Settings::create ());
69
- }
70
66
$ usesLenientParsing = $ parserState ->getSettings ()->usesLenientParsing ();
71
67
$ comments = [];
72
68
while (!$ parserState ->isEnd ()) {
You can’t perform that action at this time.
0 commit comments