Skip to content

Commit

Permalink
Merge pull request #155 from challgren/fix-with-parameter
Browse files Browse the repository at this point in the history
Correcting with parameter typehints
  • Loading branch information
yajra authored Oct 5, 2022
2 parents 63648c5 + b296b6b commit 98fe2fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Services/DataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -681,11 +681,11 @@ public function addScopes(array $scopes): static
/**
* Set a custom class attribute.
*
* @param array|string $key
* @param array|string|null $value
* @param array|string $key
* @param mixed|null $value
* @return $this
*/
public function with(array|string $key, array|string $value = null): static
public function with(array|string $key, mixed $value = null): static
{
if (is_array($key)) {
$this->attributes = array_merge($this->attributes, $key);
Expand Down

0 comments on commit 98fe2fd

Please sign in to comment.