We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 361f671 commit 347895dCopy full SHA for 347895d
src/PhpGenerator/Closure.php
@@ -57,6 +57,11 @@ public function __toString()
57
*/
58
public function setUses(array $uses)
59
{
60
+ foreach ($uses as $use) {
61
+ if (!$use instanceof Parameter) {
62
+ throw new Nette\InvalidArgumentException('Argument must be Nette\PhpGenerator\Parameter[].');
63
+ }
64
65
$this->uses = $uses;
66
return $this;
67
}
0 commit comments