File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Please also have a look at our
18
18
19
19
### Fixed
20
20
21
- - Use typesafe versions of PHP functions (#1379 , #1380 )
21
+ - Use typesafe versions of PHP functions (#1379 , #1380 , # 1382 )
22
22
23
23
### Documentation
24
24
Original file line number Diff line number Diff line change 10
10
use Sabberworm \CSS \Parsing \UnexpectedEOFException ;
11
11
use Sabberworm \CSS \Parsing \UnexpectedTokenException ;
12
12
13
+ use function Safe \preg_match ;
14
+
13
15
/**
14
16
* This class is a wrapper for quoted strings to distinguish them from keywords.
15
17
*
@@ -54,7 +56,7 @@ public static function parse(ParserState $parserState): CSSString
54
56
$ content = null ;
55
57
if ($ quote === null ) {
56
58
// Unquoted strings end in whitespace or with braces, brackets, parentheses
57
- while (\ preg_match ('/[ \\s{}()<> \\[ \\]]/isu ' , $ parserState ->peek ()) !== 1 ) {
59
+ while (preg_match ('/[ \\s{}()<> \\[ \\]]/isu ' , $ parserState ->peek ()) === 0 ) {
58
60
$ result .= $ parserState ->parseCharacter (false );
59
61
}
60
62
} else {
You can’t perform that action at this time.
0 commit comments