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 11parameters :
22 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-
93 -
104 message : ' #^Loose comparison via "\=\=" is not allowed\.$#'
115 identifier : equal.notAllowed
Original file line number Diff line number Diff line change 2121use Sabberworm \CSS \RuleSet \AtRuleSet ;
2222use Sabberworm \CSS \RuleSet \DeclarationBlock ;
2323use Sabberworm \CSS \RuleSet \RuleSet ;
24- use Sabberworm \CSS \Settings ;
2524use Sabberworm \CSS \Value \CSSString ;
2625use Sabberworm \CSS \Value \URL ;
2726use Sabberworm \CSS \Value \Value ;
@@ -64,9 +63,6 @@ public function __construct(?int $lineNumber = null)
6463 public static function parseList (ParserState $ parserState , CSSList $ list ): void
6564 {
6665 $ isRoot = $ list instanceof Document;
67- if (\is_string ($ parserState )) {
68- $ parserState = new ParserState ($ parserState , Settings::create ());
69- }
7066 $ usesLenientParsing = $ parserState ->getSettings ()->usesLenientParsing ();
7167 $ comments = [];
7268 while (!$ parserState ->isEnd ()) {
You can’t perform that action at this time.
0 commit comments