diff --git a/src/PhpFileCleaner.php b/src/PhpFileCleaner.php index 3a74478..26305e7 100644 --- a/src/PhpFileCleaner.php +++ b/src/PhpFileCleaner.php @@ -238,10 +238,11 @@ private function peek(string $char): bool /** * @param non-empty-string $regex - * @param null|array $match + * @param null|array $match + * @param-out array $match */ private function match(string $regex, array &$match = null): bool { - return Preg::isMatch($regex, $this->contents, $match, 0, $this->index); + return Preg::isMatchStrictGroups($regex, $this->contents, $match, 0, $this->index); } }