Skip to content

Commit 2385b8a

Browse files
authored
Merge pull request #2865 from yajra/fixWith
Fix with method error with static analysis
2 parents a311684 + 9f369f5 commit 2385b8a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/DataTableAbstract.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,6 @@ public function with($key, $value = ''): static
430430
{
431431
if (is_array($key)) {
432432
$this->appends = $key;
433-
} elseif (is_callable($value)) {
434-
$this->appends[$key] = value($value);
435433
} else {
436434
$this->appends[$key] = value($value);
437435
}

0 commit comments

Comments
 (0)