Skip to content

Commit

Permalink
fix: Deprecated: urlencode(): Passing null to parameter #1 ($string) …
Browse files Browse the repository at this point in the history
…of type string is deprecated in /Zend/Locale/Data.php
  • Loading branch information
Jimbolino committed Jul 26, 2022
1 parent 52181d9 commit 498735b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Locale/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ public static function getContent($locale, $path, $value = false)
if (is_array($value)) {
$val = implode('_' , $value);
}
$val = urlencode($val);
$val = urlencode((string) $val);
$id = self::_filterCacheId('Zend_LocaleC_' . $locale . '_' . $path . '_' . $val);
if (!self::$_cacheDisabled && ($result = self::$_cache->load($id))) {
return unserialize($result);
Expand Down

0 comments on commit 498735b

Please sign in to comment.