Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/PhpParser/Node/Expr/CallLike.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ public function isFirstClassCallable(): bool {
}

/**
* Assert that this is not a first-class callable and return only ordinary Args.
* Return only ordinary Args.
*
* @return Arg[]
*/
public function getArgs(): array {
assert(!$this->isFirstClassCallable());
if ($this->isFirstClassCallable()) {
return [];
}
return $this->getRawArgs();
}

Expand Down