Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Mar 15, 2024
1 parent 953cc4e commit c0521cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/PhpFileCleaner.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,11 @@ private function peek(string $char): bool

/**
* @param non-empty-string $regex
* @param null|array<int, string> $match
* @param null|array<mixed> $match
* @param-out array<int|string, string> $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);
}
}

0 comments on commit c0521cb

Please sign in to comment.