[Dotenv] Changed preg_match flags from null to 0

This commit is contained in:
Derek Bonner 2017-11-29 20:11:54 -08:00
parent 0d433cda7c
commit b0d297b962

View File

@ -173,7 +173,7 @@ final class Dotenv
private function lexValue()
{
if (preg_match('/[ \t]*+(?:#.*)?$/Am', $this->data, $matches, null, $this->cursor)) {
if (preg_match('/[ \t]*+(?:#.*)?$/Am', $this->data, $matches, 0, $this->cursor)) {
$this->moveCursor($matches[0]);
$this->skipEmptyLines();
@ -295,7 +295,7 @@ final class Dotenv
private function skipEmptyLines()
{
if (preg_match('/(?:\s*+(?:#[^\n]*+)?+)++/A', $this->data, $match, null, $this->cursor)) {
if (preg_match('/(?:\s*+(?:#[^\n]*+)?+)++/A', $this->data, $match, 0, $this->cursor)) {
$this->moveCursor($match[0]);
}
}