function ParserAbstract::isSimpleExit
Parameters
array<Node\Arg|Node\VariadicPlaceholder> $args :
1 call to ParserAbstract::isSimpleExit()
- ParserAbstract::createExitExpr in vendor/
nikic/ php-parser/ lib/ PhpParser/ ParserAbstract.php
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ ParserAbstract.php, line 1200
Class
Namespace
PhpParserCode
private function isSimpleExit(array $args) : bool {
if (\count($args) === 0) {
return true;
}
if (\count($args) === 1) {
$arg = $args[0];
return $arg instanceof Arg && $arg->name === null && $arg->byRef === false && $arg->unpack === false;
}
return false;
}