diff --git a/tests/files/Support/Str.php b/tests/files/Support/Str.php index 04abd9d..7d4f72e 100644 --- a/tests/files/Support/Str.php +++ b/tests/files/Support/Str.php @@ -1125,11 +1125,12 @@ public static function studly($value) * @param string $string * @param int $start * @param int|null $length + * @param string $encoding * @return string */ - public static function substr($string, $start, $length = null) + public static function substr($string, $start, $length = null, $encoding = 'UTF-8') { - return mb_substr($string, $start, $length, 'UTF-8'); + return mb_substr($string, $start, $length, $encoding); } /** diff --git a/tests/files/Support/Stringable.php b/tests/files/Support/Stringable.php index 3a8af52..c211520 100644 --- a/tests/files/Support/Stringable.php +++ b/tests/files/Support/Stringable.php @@ -784,11 +784,12 @@ public function studly() * * @param int $start * @param int|null $length + * @param string $encoding * @return static */ - public function substr($start, $length = null) + public function substr($start, $length = null, $encoding = 'UTF-8') { - return new static(Str::substr($this->value, $start, $length)); + return new static(Str::substr($this->value, $start, $length, $encoding)); } /** diff --git a/upgrade.sh b/upgrade.sh index c0650d9..91003bb 100755 --- a/upgrade.sh +++ b/upgrade.sh @@ -381,7 +381,7 @@ function getCurrentVersionFromGitHub() echo Getting current version from $repository... if [ -z "$requestedVersion" ]; then - collectionVersion=$(git ls-remote $repository --tags v9.43\* | grep tags/ | grep -v {} | cut -d \/ -f 3 | cut -d v -f 2 | grep -v RC | grep -vi beta | sort -t. -k 1,1n -k 2,2n -k 3,3n| tail -1) + collectionVersion=$(git ls-remote $repository --tags v9.44\* | grep tags/ | grep -v {} | cut -d \/ -f 3 | cut -d v -f 2 | grep -v RC | grep -vi beta | sort -t. -k 1,1n -k 2,2n -k 3,3n| tail -1) else collectionVersion=$requestedVersion fi