Skip to content

Commit 0a06cb2

Browse files
authored
PHP:8.x: Update Parser.php
1 parent c10e554 commit 0a06cb2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Parser.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ protected function peek($regex, &$out, $from = null)
833833
}
834834

835835
$r = '/' . $regex . '/' . $this->patternModifiers;
836-
$result = preg_match($r, $this->buffer, $out, null, $from);
836+
$result = preg_match($r, $this->buffer, $out, 0, $from);
837837

838838
return $result;
839839
}
@@ -902,7 +902,7 @@ protected function match($regex, &$out, $eatWhitespace = null)
902902
{
903903
$r = '/' . $regex . '/' . $this->patternModifiers;
904904

905-
if (! preg_match($r, $this->buffer, $out, null, $this->count)) {
905+
if (! preg_match($r, $this->buffer, $out, 0, $this->count)) {
906906
return false;
907907
}
908908

@@ -983,7 +983,7 @@ protected function whitespace()
983983
{
984984
$gotWhite = false;
985985

986-
while (preg_match(static::$whitePattern, $this->buffer, $m, null, $this->count)) {
986+
while (preg_match(static::$whitePattern, $this->buffer, $m, 0, $this->count)) {
987987
if (isset($m[1]) && empty($this->commentsSeen[$this->count])) {
988988
// comment that are kept in the output CSS
989989
$comment = [];
@@ -2219,7 +2219,7 @@ protected function propertyName(&$out)
22192219
static::$whitePattern,
22202220
$this->buffer,
22212221
$m,
2222-
null,
2222+
0,
22232223
$this->count
22242224
)) {
22252225
if (! empty($m[0])) {

0 commit comments

Comments
 (0)