We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c360e2 commit ce4e824Copy full SHA for ce4e824
lib/PhpParser/Node/Expr/CallLike.php
@@ -24,12 +24,14 @@ public function isFirstClassCallable(): bool {
24
}
25
26
/**
27
- * Assert that this is not a first-class callable and return only ordinary Args.
+ * Return only ordinary Args.
28
*
29
* @return Arg[]
30
*/
31
public function getArgs(): array {
32
- assert(!$this->isFirstClassCallable());
+ if ($this->isFirstClassCallable()) {
33
+ return [];
34
+ }
35
return $this->getRawArgs();
36
37
0 commit comments