From 52adda1d79da53d2c7803a2d96d1d3b167c7c81a Mon Sep 17 00:00:00 2001 From: Vlasta Neubauer Date: Tue, 12 Oct 2021 11:00:40 +0200 Subject: [PATCH] Typo --- src/Time/Date.php | 1 + src/common/Str.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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 {