Skip to content

Commit a230191

Browse files
committed
Allow binding multiple closure vars at once
1 parent f5ef64a commit a230191

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/AbstractFunction.php

+9
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ public function bindVar(string $name, bool $isByReference = false): self
6565
return $this;
6666
}
6767

68+
public function bindVars(string ...$names): self
69+
{
70+
foreach ($names as $name) {
71+
$this->signature->bindVar($name);
72+
}
73+
74+
return $this;
75+
}
76+
6877
public function removeUses()
6978
{
7079
$this->signature->removeUses();

0 commit comments

Comments
 (0)