Skip to content

Commit b1f07ed

Browse files
authored
fix groupBy() return type phpdoc (#53684)
1 parent 41d1a2d commit b1f07ed

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Illuminate/Collections/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ public function getOrPut($key, $value)
494494
*
495495
* @param (callable(TValue, TKey): TGroupKey)|array|string $groupBy
496496
* @param bool $preserveKeys
497-
* @return static<($groupBy is string ? array-key : ($groupBy is array ? array-key : TGroupKey)), static<($preserveKeys is true ? TKey : int), TValue>>
497+
* @return static<($groupBy is string ? array-key : ($groupBy is array ? array-key : TGroupKey)), static<($preserveKeys is true ? TKey : int), ($groupBy is array ? mixed : TValue)>>
498498
*/
499499
public function groupBy($groupBy, $preserveKeys = false)
500500
{

src/Illuminate/Collections/Enumerable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ public function get($key, $default = null);
522522
*
523523
* @param (callable(TValue, TKey): TGroupKey)|array|string $groupBy
524524
* @param bool $preserveKeys
525-
* @return static<($groupBy is string ? array-key : ($groupBy is array ? array-key : TGroupKey)), static<($preserveKeys is true ? TKey : int), TValue>>
525+
* @return static<($groupBy is string ? array-key : ($groupBy is array ? array-key : TGroupKey)), static<($preserveKeys is true ? TKey : int), ($groupBy is array ? mixed : TValue)>>
526526
*/
527527
public function groupBy($groupBy, $preserveKeys = false);
528528

src/Illuminate/Collections/LazyCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ public function get($key, $default = null)
552552
*
553553
* @param (callable(TValue, TKey): TGroupKey)|array|string $groupBy
554554
* @param bool $preserveKeys
555-
* @return static<($groupBy is string ? array-key : ($groupBy is array ? array-key : TGroupKey)), static<($preserveKeys is true ? TKey : int), TValue>>
555+
* @return static<($groupBy is string ? array-key : ($groupBy is array ? array-key : TGroupKey)), static<($preserveKeys is true ? TKey : int), ($groupBy is array ? mixed : TValue)>>
556556
*/
557557
public function groupBy($groupBy, $preserveKeys = false)
558558
{

0 commit comments

Comments
 (0)