Skip to content

Commit

Permalink
~ Patch array fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tylernathanreed authored Sep 25, 2023
1 parent d6e2580 commit 074c8d8
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions src/Mixins/JoinsRelationships.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,12 @@ public function leftJoinRelation()
* Add a relationship left join condition to the query.
*
* @param string $relation
* @param \Closure|null $callback
* @param \Closure|array|null $callback
* @param bool $through
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, Closure $callback = null, $through = false) {
return function ($relation, Closure|array $callback = null, $through = false) {
return $this->joinRelation($relation, $callback, 'left', $through);
};
}
Expand All @@ -446,12 +446,12 @@ public function rightJoinRelation()
* Add a relationship right join condition to the query.
*
* @param string $relation
* @param \Closure|null $callback
* @param \Closure|array|null $callback
* @param bool $through
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, Closure $callback = null, $through = false) {
return function ($relation, Closure|array $callback = null, $through = false) {
return $this->joinRelation($relation, $callback, 'right', $through);
};
}
Expand All @@ -467,12 +467,12 @@ public function crossJoinRelation()
* Add a relationship cross join condition to the query.
*
* @param string $relation
* @param \Closure|null $callback
* @param \Closure|array|null $callback
* @param bool $through
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, Closure $callback = null, $through = false) {
return function ($relation, Closure|array $callback = null, $through = false) {
return $this->joinRelation($relation, $callback, 'cross', $through);
};
}
Expand All @@ -488,12 +488,12 @@ public function joinThroughRelation()
* Add a relationship join condition through a related model to the query.
*
* @param string $relation
* @param \Closure|null $callback
* @param \Closure|array|null $callback
* @param string $type
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, Closure $callback = null, $type = 'inner') {
return function ($relation, Closure|array $callback = null, $type = 'inner') {
return $this->joinRelation($relation, $callback, $type, true);
};
}
Expand All @@ -509,11 +509,11 @@ public function leftJoinThroughRelation()
* Add a relationship left join condition through a related model to the query.
*
* @param string $relation
* @param \Closure|null $callback
* @param \Closure|array|null $callback
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, Closure $callback = null) {
return function ($relation, Closure|array $callback = null) {
return $this->joinRelation($relation, $callback, 'left', true);
};
}
Expand All @@ -529,11 +529,11 @@ public function rightJoinThroughRelation()
* Add a relationship right join condition through a related model to the query.
*
* @param string $relation
* @param \Closure|null $callback
* @param \Closure|array|null $callback
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, Closure $callback = null) {
return function ($relation, Closure|array $callback = null) {
return $this->joinRelation($relation, $callback, 'right', true);
};
}
Expand All @@ -549,11 +549,11 @@ public function crossJoinThroughRelation()
* Add a relationship cross join condition through a related model to the query.
*
* @param string $relation
* @param \Closure|null $callback
* @param \Closure|array|null $callback
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, Closure $callback = null) {
return function ($relation, Closure|array $callback = null) {
return $this->joinRelation($relation, $callback, 'cross', true);
};
}
Expand All @@ -570,14 +570,14 @@ public function joinMorphRelation()
*
* @param string|array $relation
* @param string|array $morphTypes
* @param \Closure|null $callback
* @param \Closure|array|null $callback
* @param string $type
* @param bool $through
* @param \Illuminate\Database\Eloquent\Builder $relatedQuery
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, $morphTypes = ['*'], Closure $callback = null, $type = 'inner', $through = false, Builder $relatedQuery = null) {
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null, $type = 'inner', $through = false, Builder $relatedQuery = null) {
return $this->joinRelation($relation, $callback, $type, $through, $relatedQuery, $morphTypes);
};
}
Expand All @@ -594,12 +594,12 @@ public function leftJoinMorphRelation()
*
* @param string $relation
* @param string|array $morphTypes
* @param \Closure|null $callback
* @param \Closure|array|null $callback
* @param bool $through
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, $morphTypes = ['*'], Closure $callback = null, $through = false) {
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null, $through = false) {
return $this->joinRelation($relation, $callback, 'left', $through, null, $morphTypes);
};
}
Expand All @@ -616,12 +616,12 @@ public function rightJoinMorphRelation()
*
* @param string $relation
* @param string|array $morphTypes
* @param \Closure|null $callback
* @param \Closure|array|null $callback
* @param bool $through
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, $morphTypes = ['*'], Closure $callback = null, $through = false) {
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null, $through = false) {
return $this->joinRelation($relation, $callback, 'right', $through, null, $morphTypes);
};
}
Expand All @@ -638,12 +638,12 @@ public function crossJoinMorphRelation()
*
* @param string $relation
* @param string|array $morphTypes
* @param \Closure|null $callback
* @param \Closure|array|null $callback
* @param bool $through
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, $morphTypes = ['*'], Closure $callback = null, $through = false) {
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null, $through = false) {
return $this->joinRelation($relation, $callback, 'cross', $through, null, $morphTypes);
};
}
Expand All @@ -660,12 +660,12 @@ public function joinThroughMorphRelation()
*
* @param string $relation
* @param string|array $morphTypes
* @param \Closure|null $callback
* @param \Closure|array|null $callback
* @param string $type
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, $morphTypes = ['*'], Closure $callback = null, $type = 'inner') {
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null, $type = 'inner') {
return $this->joinRelation($relation, $callback, $type, true, null, $morphTypes);
};
}
Expand All @@ -682,11 +682,11 @@ public function leftJoinThroughMorphRelation()
*
* @param string $relation
* @param string|array $morphTypes
* @param \Closure|null $callback
* @param \Closure|array|null $callback
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, $morphTypes = ['*'], Closure $callback = null) {
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null) {
return $this->joinRelation($relation, $callback, 'left', true, null, $morphTypes);
};
}
Expand All @@ -703,11 +703,11 @@ public function rightJoinThroughMorphRelation()
*
* @param string $relation
* @param string|array $morphTypes
* @param \Closure|null $callback
* @param \Closure|array|null $callback
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, $morphTypes = ['*'], Closure $callback = null) {
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null) {
return $this->joinRelation($relation, $callback, 'right', true, null, $morphTypes);
};
}
Expand All @@ -724,11 +724,11 @@ public function crossJoinThroughMorphRelation()
*
* @param string $relation
* @param string|array $morphTypes
* @param \Closure|null $callback
* @param \Closure|array|null $callback
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, $morphTypes = ['*'], Closure $callback = null) {
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null) {
return $this->joinRelation($relation, $callback, 'cross', true, null, $morphTypes);
};
}
Expand Down

0 comments on commit 074c8d8

Please sign in to comment.