Skip to content

Commit 98fe2fd

Browse files
authored
Merge pull request #155 from challgren/fix-with-parameter
Correcting with parameter typehints
2 parents 63648c5 + b296b6b commit 98fe2fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Services/DataTable.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,11 +681,11 @@ public function addScopes(array $scopes): static
681681
/**
682682
* Set a custom class attribute.
683683
*
684-
* @param array|string $key
685-
* @param array|string|null $value
684+
* @param array|string $key
685+
* @param mixed|null $value
686686
* @return $this
687687
*/
688-
public function with(array|string $key, array|string $value = null): static
688+
public function with(array|string $key, mixed $value = null): static
689689
{
690690
if (is_array($key)) {
691691
$this->attributes = array_merge($this->attributes, $key);

0 commit comments

Comments
 (0)