8000 [Dotenv] Changed preg_match flags from null to 0 · symfony/symfony@b0d297b · GitHub
[go: up one dir, main page]

Skip to content

Commit b0d297b

Browse files
committed
[Dotenv] Changed preg_match flags from null to 0
1 parent 0d433cd commit b0d297b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Dotenv/Dotenv.php

Lines changed: 2 additions & 2 deletions
174
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ private function lexVarname()
173173

174
private function lexValue()
175175
{
176-
if (preg_match('/[ \t]*+(?:#.*)?$/Am', $this->data, $matches, null, $this->cursor)) {
176+
if (preg_match('/[ \t]*+(?:#.*)?$/Am', $this->data, $matches, 0, $this->cursor)) {
177177
$this->moveCursor($matches[0]);
178178
$this->skipEmptyLines();
179179

@@ -295,7 +295,7 @@ private function lexNestedExpression()
295295

296296
private function skipEmptyLines()
297297
{
298-
if (preg_match('/(?:\s*+(?:#[^\n]*+)?+)++/A', $this->data, $match, null, $this->cursor)) {
298+
if (preg_match('/(?:\s*+(?:#[^\n]*+)?+)++/A', $this->data, $match, 0, $this->cursor)) {
299299
$this->moveCursor($match[0]);
300300
}
301301
}

0 commit comments

Comments
 (0)
0