Skip to content

Commit 8aaf902

Browse files
authored
Update StrHelper.php
1 parent 382cb10 commit 8aaf902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StrHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ public static function length(string $subject, ?string $encoding = null): int
532532
* @param int $offset
533533
* @return bool
534534
*/
535-
public static function match(string $pattern, string $subject, array &$matches = null, int $flags = 0, int $offset = 0): bool
535+
public static function match(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0): bool
536536
{
537537
return preg_match($pattern, $subject, $matches, $flags, $offset) === 1;
538538
}

0 commit comments

Comments
 (0)