Skip to content

Commit 352a00e

Browse files
committed
- update: to shorthand callable
1 parent c991a58 commit 352a00e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function tap(mixed $value, callable $callable = null): mixed
9595
public function __construct(private mixed $value) {}
9696
public function __call($method, $arguments) {
9797
// @codeCoverageIgnoreStart
98-
$this->value->{$method}(...$arguments);
98+
([$this->value, $method])(...$arguments);
9999
return $this->value;
100100
// @codeCoverageIgnoreEnd
101101
}

0 commit comments

Comments
 (0)