Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Commit b89f6a9

Browse files
author
Andrey Helldar
committed
Regexp fix
1 parent 2db4774 commit b89f6a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Services/Parser.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected function parse(string $content): void
4848
}
4949
}
5050

51-
protected function match(string $content, string $pattern = '/(getenv|env)\((.+)\)/'): array
51+
protected function match(string $content, string $pattern = '/(getenv|env)\((.+)\)/U'): array
5252
{
5353
preg_match_all($pattern, $content, $matches);
5454

@@ -74,7 +74,7 @@ protected function push(string $key, $value): void
7474

7575
protected function subkey(string $value): string
7676
{
77-
$sub_key = $this->match($value, '/(getenv|env)\((.+)\)?/')[0];
77+
$sub_key = $this->match($value, '/(getenv|env)\((.+)\)?/U')[0];
7878

7979
return trim($sub_key, " \t\n\r\0\x0B,()");
8080
}

0 commit comments

Comments
 (0)