Skip to content

Commit

Permalink
php 8.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Xon committed Mar 23, 2024
1 parent f6a82ae commit e13d409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Matchers/ReverseDictionaryMatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function getFeedback(bool $isSoleMatch): array
return $feedback;
}

public static function mbStrRev(string $string, string $encoding = null): string
public static function mbStrRev(string $string, ?string $encoding = null): string
{
if ($encoding === null) {
$encoding = mb_detect_encoding($string) ?: 'UTF-8';
Expand Down

0 comments on commit e13d409

Please sign in to comment.