Skip to content

Commit e07f36c

Browse files
authored
Merge pull request #133 from mariovalney/patch-1
[4x.] Fix addScopes method pushing the array of scopes.
2 parents 3ac8d2b + c0ec478 commit e07f36c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/DataTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ public function addScope(DataTableScope $scope)
591591
*/
592592
public function addScopes(array $scopes)
593593
{
594-
array_push($this->scopes, $scopes);
594+
$this->scopes = array_merge($this->scopes, $scopes);
595595

596596
return $this;
597597
}

0 commit comments

Comments
 (0)