Skip to content

Commit f8f0ee8

Browse files
~ PHP 7.4 savvy fix
1 parent 074c8d8 commit f8f0ee8

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/Mixins/JoinsRelationships.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ public function leftJoinRelation()
430430
*
431431
* @return \Illuminate\Database\Eloquent\Builder|static
432432
*/
433-
return function ($relation, Closure|array $callback = null, $through = false) {
433+
return function ($relation, $callback = null, $through = false) {
434434
return $this->joinRelation($relation, $callback, 'left', $through);
435435
};
436436
}
@@ -451,7 +451,7 @@ public function rightJoinRelation()
451451
*
452452
* @return \Illuminate\Database\Eloquent\Builder|static
453453
*/
454-
return function ($relation, Closure|array $callback = null, $through = false) {
454+
return function ($relation, $callback = null, $through = false) {
455455
return $this->joinRelation($relation, $callback, 'right', $through);
456456
};
457457
}
@@ -472,7 +472,7 @@ public function crossJoinRelation()
472472
*
473473
* @return \Illuminate\Database\Eloquent\Builder|static
474474
*/
475-
return function ($relation, Closure|array $callback = null, $through = false) {
475+
return function ($relation, $callback = null, $through = false) {
476476
return $this->joinRelation($relation, $callback, 'cross', $through);
477477
};
478478
}
@@ -493,7 +493,7 @@ public function joinThroughRelation()
493493
*
494494
* @return \Illuminate\Database\Eloquent\Builder|static
495495
*/
496-
return function ($relation, Closure|array $callback = null, $type = 'inner') {
496+
return function ($relation, $callback = null, $type = 'inner') {
497497
return $this->joinRelation($relation, $callback, $type, true);
498498
};
499499
}
@@ -513,7 +513,7 @@ public function leftJoinThroughRelation()
513513
*
514514
* @return \Illuminate\Database\Eloquent\Builder|static
515515
*/
516-
return function ($relation, Closure|array $callback = null) {
516+
return function ($relation, $callback = null) {
517517
return $this->joinRelation($relation, $callback, 'left', true);
518518
};
519519
}
@@ -533,7 +533,7 @@ public function rightJoinThroughRelation()
533533
*
534534
* @return \Illuminate\Database\Eloquent\Builder|static
535535
*/
536-
return function ($relation, Closure|array $callback = null) {
536+
return function ($relation, $callback = null) {
537537
return $this->joinRelation($relation, $callback, 'right', true);
538538
};
539539
}
@@ -553,7 +553,7 @@ public function crossJoinThroughRelation()
553553
*
554554
* @return \Illuminate\Database\Eloquent\Builder|static
555555
*/
556-
return function ($relation, Closure|array $callback = null) {
556+
return function ($relation, $callback = null) {
557557
return $this->joinRelation($relation, $callback, 'cross', true);
558558
};
559559
}
@@ -577,7 +577,7 @@ public function joinMorphRelation()
577577
*
578578
* @return \Illuminate\Database\Eloquent\Builder|static
579579
*/
580-
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null, $type = 'inner', $through = false, Builder $relatedQuery = null) {
580+
return function ($relation, $morphTypes = ['*'], $callback = null, $type = 'inner', $through = false, Builder $relatedQuery = null) {
581581
return $this->joinRelation($relation, $callback, $type, $through, $relatedQuery, $morphTypes);
582582
};
583583
}
@@ -599,7 +599,7 @@ public function leftJoinMorphRelation()
599599
*
600600
* @return \Illuminate\Database\Eloquent\Builder|static
601601
*/
602-
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null, $through = false) {
602+
return function ($relation, $morphTypes = ['*'], $callback = null, $through = false) {
603603
return $this->joinRelation($relation, $callback, 'left', $through, null, $morphTypes);
604604
};
605605
}
@@ -621,7 +621,7 @@ public function rightJoinMorphRelation()
621621
*
622622
* @return \Illuminate\Database\Eloquent\Builder|static
623623
*/
624-
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null, $through = false) {
624+
return function ($relation, $morphTypes = ['*'], $callback = null, $through = false) {
625625
return $this->joinRelation($relation, $callback, 'right', $through, null, $morphTypes);
626626
};
627627
}
@@ -643,7 +643,7 @@ public function crossJoinMorphRelation()
643643
*
644644
* @return \Illuminate\Database\Eloquent\Builder|static
645645
*/
646-
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null, $through = false) {
646+
return function ($relation, $morphTypes = ['*'], $callback = null, $through = false) {
647647
return $this->joinRelation($relation, $callback, 'cross', $through, null, $morphTypes);
648648
};
649649
}
@@ -665,7 +665,7 @@ public function joinThroughMorphRelation()
665665
*
666666
* @return \Illuminate\Database\Eloquent\Builder|static
667667
*/
668-
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null, $type = 'inner') {
668+
return function ($relation, $morphTypes = ['*'], $callback = null, $type = 'inner') {
669669
return $this->joinRelation($relation, $callback, $type, true, null, $morphTypes);
670670
};
671671
}
@@ -686,7 +686,7 @@ public function leftJoinThroughMorphRelation()
686686
*
687687
* @return \Illuminate\Database\Eloquent\Builder|static
688688
*/
689-
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null) {
689+
return function ($relation, $morphTypes = ['*'], $callback = null) {
690690
return $this->joinRelation($relation, $callback, 'left', true, null, $morphTypes);
691691
};
692692
}
@@ -707,7 +707,7 @@ public function rightJoinThroughMorphRelation()
707707
*
708708
* @return \Illuminate\Database\Eloquent\Builder|static
709709
*/
710-
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null) {
710+
return function ($relation, $morphTypes = ['*'], $callback = null) {
711711
return $this->joinRelation($relation, $callback, 'right', true, null, $morphTypes);
712712
};
713713
}
@@ -728,7 +728,7 @@ public function crossJoinThroughMorphRelation()
728728
*
729729
* @return \Illuminate\Database\Eloquent\Builder|static
730730
*/
731-
return function ($relation, $morphTypes = ['*'], Closure|array $callback = null) {
731+
return function ($relation, $morphTypes = ['*'], $callback = null) {
732732
return $this->joinRelation($relation, $callback, 'cross', true, null, $morphTypes);
733733
};
734734
}

0 commit comments

Comments
 (0)