Skip to content

Commit

Permalink
~ PHP 7.4 savvy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tylernathanreed committed Sep 25, 2023
1 parent 074c8d8 commit f8f0ee8
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/Mixins/JoinsRelationships.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public function leftJoinRelation()
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, Closure|array $callback = null, $through = false) {
return function ($relation, $callback = null, $through = false) {
return $this->joinRelation($relation, $callback, 'left', $through);
};
}
Expand All @@ -451,7 +451,7 @@ public function rightJoinRelation()
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, Closure|array $callback = null, $through = false) {
return function ($relation, $callback = null, $through = false) {
return $this->joinRelation($relation, $callback, 'right', $through);
};
}
Expand All @@ -472,7 +472,7 @@ public function crossJoinRelation()
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, Closure|array $callback = null, $through = false) {
return function ($relation, $callback = null, $through = false) {
return $this->joinRelation($relation, $callback, 'cross', $through);
};
}
Expand All @@ -493,7 +493,7 @@ public function joinThroughRelation()
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, Closure|array $callback = null, $type = 'inner') {
return function ($relation, $callback = null, $type = 'inner') {
return $this->joinRelation($relation, $callback, $type, true);
};
}
Expand All @@ -513,7 +513,7 @@ public function leftJoinThroughRelation()
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, Closure|array $callback = null) {
return function ($relation, $callback = null) {
return $this->joinRelation($relation, $callback, 'left', true);
};
}
Expand All @@ -533,7 +533,7 @@ public function rightJoinThroughRelation()
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, Closure|array $callback = null) {
return function ($relation, $callback = null) {
return $this->joinRelation($relation, $callback, 'right', true);
};
}
Expand All @@ -553,7 +553,7 @@ public function crossJoinThroughRelation()
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, Closure|array $callback = null) {
return function ($relation, $callback = null) {
return $this->joinRelation($relation, $callback, 'cross', true);
};
}
Expand All @@ -577,7 +577,7 @@ public function joinMorphRelation()
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null, $type = 'inner', $through = false, Builder $relatedQuery = null) {
return function ($relation, $morphTypes = ['*'], $callback = null, $type = 'inner', $through = false, Builder $relatedQuery = null) {
return $this->joinRelation($relation, $callback, $type, $through, $relatedQuery, $morphTypes);
};
}
Expand All @@ -599,7 +599,7 @@ public function leftJoinMorphRelation()
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null, $through = false) {
return function ($relation, $morphTypes = ['*'], $callback = null, $through = false) {
return $this->joinRelation($relation, $callback, 'left', $through, null, $morphTypes);
};
}
Expand All @@ -621,7 +621,7 @@ public function rightJoinMorphRelation()
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null, $through = false) {
return function ($relation, $morphTypes = ['*'], $callback = null, $through = false) {
return $this->joinRelation($relation, $callback, 'right', $through, null, $morphTypes);
};
}
Expand All @@ -643,7 +643,7 @@ public function crossJoinMorphRelation()
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null, $through = false) {
return function ($relation, $morphTypes = ['*'], $callback = null, $through = false) {
return $this->joinRelation($relation, $callback, 'cross', $through, null, $morphTypes);
};
}
Expand All @@ -665,7 +665,7 @@ public function joinThroughMorphRelation()
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null, $type = 'inner') {
return function ($relation, $morphTypes = ['*'], $callback = null, $type = 'inner') {
return $this->joinRelation($relation, $callback, $type, true, null, $morphTypes);
};
}
Expand All @@ -686,7 +686,7 @@ public function leftJoinThroughMorphRelation()
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null) {
return function ($relation, $morphTypes = ['*'], $callback = null) {
return $this->joinRelation($relation, $callback, 'left', true, null, $morphTypes);
};
}
Expand All @@ -707,7 +707,7 @@ public function rightJoinThroughMorphRelation()
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null) {
return function ($relation, $morphTypes = ['*'], $callback = null) {
return $this->joinRelation($relation, $callback, 'right', true, null, $morphTypes);
};
}
Expand All @@ -728,7 +728,7 @@ public function crossJoinThroughMorphRelation()
*
* @return \Illuminate\Database\Eloquent\Builder|static
*/
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null) {
return function ($relation, $morphTypes = ['*'], $callback = null) {
return $this->joinRelation($relation, $callback, 'cross', true, null, $morphTypes);
};
}
Expand Down

0 comments on commit f8f0ee8

Please sign in to comment.