Skip to content

Commit

Permalink
Fix Collection PHPDoc (#52724)
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir authored Sep 10, 2024
1 parent a2c66ad commit 77b9d8e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/Illuminate/Database/Eloquent/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function findOrFail($key)
/**
* Load a set of relationships onto the collection.
*
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
* @return $this
*/
public function load($relations)
Expand All @@ -105,7 +105,7 @@ public function load($relations)
/**
* Load a set of aggregations over relationship's column onto the collection.
*
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
* @param string $column
* @param string|null $function
* @return $this
Expand Down Expand Up @@ -142,7 +142,7 @@ public function loadAggregate($relations, $column, $function = null)
/**
* Load a set of relationship counts onto the collection.
*
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
* @return $this
*/
public function loadCount($relations)
Expand All @@ -153,7 +153,7 @@ public function loadCount($relations)
/**
* Load a set of relationship's max column values onto the collection.
*
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
* @param string $column
* @return $this
*/
Expand All @@ -165,7 +165,7 @@ public function loadMax($relations, $column)
/**
* Load a set of relationship's min column values onto the collection.
*
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
* @param string $column
* @return $this
*/
Expand All @@ -177,7 +177,7 @@ public function loadMin($relations, $column)
/**
* Load a set of relationship's column summations onto the collection.
*
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
* @param string $column
* @return $this
*/
Expand All @@ -189,7 +189,7 @@ public function loadSum($relations, $column)
/**
* Load a set of relationship's average column values onto the collection.
*
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
* @param string $column
* @return $this
*/
Expand All @@ -201,7 +201,7 @@ public function loadAvg($relations, $column)
/**
* Load a set of related existences onto the collection.
*
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
* @return $this
*/
public function loadExists($relations)
Expand All @@ -212,7 +212,7 @@ public function loadExists($relations)
/**
* Load a set of relationships onto the collection if they are not already eager loaded.
*
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
* @return $this
*/
public function loadMissing($relations)
Expand Down Expand Up @@ -284,7 +284,7 @@ protected function loadMissingRelation(self $models, array $path)
* Load a set of relationships onto the mixed relationship collection.
*
* @param string $relation
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string> $relations
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string> $relations
* @return $this
*/
public function loadMorph($relation, $relations)
Expand All @@ -301,7 +301,7 @@ public function loadMorph($relation, $relations)
* Load a set of relationship counts onto the mixed relationship collection.
*
* @param string $relation
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string> $relations
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string> $relations
* @return $this
*/
public function loadMorphCount($relation, $relations)
Expand Down

0 comments on commit 77b9d8e

Please sign in to comment.