Skip to content

Commit

Permalink
Fix warning with PHP 8.2 with strtr() usage
Browse files Browse the repository at this point in the history
> Deprecated: strtr(): Passing null to parameter #2 ($from) of type array|string
> is deprecated in vendor/pear/validate/Validate.php on line 254
  • Loading branch information
cweiske committed Mar 21, 2023
1 parent 37ab9a7 commit 38dde6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Validate.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ private static function _uriRFC4151($uri)
*/ */
public static function number($number, $options = array()) public static function number($number, $options = array())
{ {
$decimal = $dec_prec = $min = $max = null; $decimal = '';
$dec_prec = $min = $max = null;
if (is_array($options)) { if (is_array($options)) {
extract($options); extract($options);
} }
Expand Down

0 comments on commit 38dde6f

Please sign in to comment.