diff --git a/src/Collect/Support/Collection.php b/src/Collect/Support/Collection.php index 44b5f7e..d50ebc2 100644 --- a/src/Collect/Support/Collection.php +++ b/src/Collect/Support/Collection.php @@ -1646,7 +1646,7 @@ public function count(): int /** * Count the number of items in the collection by a field or using a callback. * - * @param (callable(TValue, TKey): mixed)|string|null $countBy + * @param (callable(TValue, TKey): array-key)|string|null $countBy * @return static */ public function countBy($countBy = null) diff --git a/src/Collect/Support/Enumerable.php b/src/Collect/Support/Enumerable.php index 7f35e48..d8b21da 100644 --- a/src/Collect/Support/Enumerable.php +++ b/src/Collect/Support/Enumerable.php @@ -1168,7 +1168,7 @@ public function count(): int; /** * Count the number of items in the collection by a field or using a callback. * - * @param (callable(TValue, TKey): mixed)|string|null $countBy + * @param (callable(TValue, TKey): array-key)|string|null $countBy * @return static */ public function countBy($countBy = null); diff --git a/src/Collect/Support/LazyCollection.php b/src/Collect/Support/LazyCollection.php index e6b8d8b..eb94e0d 100644 --- a/src/Collect/Support/LazyCollection.php +++ b/src/Collect/Support/LazyCollection.php @@ -292,7 +292,7 @@ public function crossJoin(...$arrays) /** * Count the number of items in the collection by a field or using a callback. * - * @param (callable(TValue, TKey): mixed)|string|null $countBy + * @param (callable(TValue, TKey): array-key)|string|null $countBy * @return static */ public function countBy($countBy = null) diff --git a/upgrade.sh b/upgrade.sh index 05694d4..8a8c586 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.47\* | 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.48\* | 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