+ $node = $nodes[0];
+
+ // Make this work for PHP Parser v3.x
+ $expr = isset($node->expr) ? $node->expr : $node;
+
+ $args = [new Arg($expr, false, false, $node->getAttributes())];
+
+ // Allow throwing via a string, e.g. `throw-up "SUP"`
+ if ($expr instanceof String_) {
+ return [new New_(new FullyQualifiedName('Exception'), $args)];
+ }
+
+ return $args;