File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ Please also have a look at our
43
43
### Fixed
44
44
45
45
- Fix type errors in PHP strict mode (#664 )
46
- - Fix comment parsing to support multiple comments (#672 )
47
46
- Fix undefined local variable in ` CalcFunction::parse() ` (#593 )
48
47
- Fix PHP notice caused by parsing invalid color values having less than 6
49
48
characters (#485 )
Original file line number Diff line number Diff line change @@ -108,9 +108,7 @@ public static function parse(ParserState $oParserState): Rule
108
108
$ oParserState ->consume ('; ' );
109
109
}
110
110
111
- while (\preg_match ('/ \\s/isSu ' , $ oParserState ->peek ()) === 1 ) {
112
- $ oParserState ->consume (1 );
113
- }
111
+ $ oParserState ->consumeWhiteSpace ();
114
112
115
113
return $ oRule ;
116
114
}
Original file line number Diff line number Diff line change @@ -1171,11 +1171,14 @@ public function flatCommentExtractingOneComment(): void
1171
1171
self ::assertCount (1 , $ comments );
1172
1172
self ::assertSame ('Find Me! ' , $ comments [0 ]->getComment ());
1173
1173
}
1174
+
1174
1175
/**
1175
1176
* @test
1176
1177
*/
1177
1178
public function flatCommentExtractingTwoComments (): void
1178
1179
{
1180
+ self ::markTestSkipped ('This is currently broken. ' );
1181
+
1179
1182
$ parser = new Parser ('div {/*Find Me!*/left:10px; /*Find Me Too!*/text-align:left;} ' );
1180
1183
$ document = $ parser ->parse ();
1181
1184
$ contents = $ document ->getContents ();
Original file line number Diff line number Diff line change @@ -467,8 +467,6 @@ public function canRemoveCommentsFromRulesUsingStrictParsing(
467
467
string $ cssWithComments ,
468
468
string $ cssWithoutComments
469
469
): void {
470
- self ::markTestSkipped ('This currently crashes, and we need to fix it. ' );
471
-
472
470
$ parserSettings = ParserSettings::create ()->withLenientParsing (false );
473
471
$ document = (new Parser ($ cssWithComments , $ parserSettings ))->parse ();
474
472
You can’t perform that action at this time.
0 commit comments