diff --git a/src/Time/Date.php b/src/Time/Date.php index 1f97fafe..ee3b62e6 100644 --- a/src/Time/Date.php +++ b/src/Time/Date.php @@ -34,6 +34,7 @@ use function gregoriantojd; use function intval; use function is_int; +use function is_string; use function jdtogregorian; use function sprintf; use function str_replace; diff --git a/src/common/Str.php b/src/common/Str.php index 09c459d4..682017a5 100644 --- a/src/common/Str.php +++ b/src/common/Str.php @@ -61,7 +61,7 @@ class Str public static function checkEncoding(string $string): bool { - return $string === self::fixEncoding($string); + return $string === Strings::fixEncoding($string); } public static function fixEncoding(string $string): string @@ -569,7 +569,7 @@ public static function match(string $string, string $pattern, int $flags = 0, in /** * @deprecated use Re::matchAll() instead - * @return string[] + * @return string[][] */ public static function matchAll(string $string, string $pattern, int $flags = 0, int $offset = 0): array {