private getPrimitiveValue ( PhpParser\Node $node ) : mixed | ||
$node | PhpParser\Node | |
return | mixed |
private function getPrimitiveValue(Node $node)
{
if ($this->isBool($node)) {
return (bool) $this->getExpression($node);
}
if ($this->isNull($node)) {
return null;
}
return $node->value;
}