Update parse_args and use fromArray for firehose.php