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