left instanceof Node\Expr\ErrorSuppress)) { $node->left = new Node\Expr\ErrorSuppress($node->left); } return self::callPoly('coalesce', $node->left, $node->right); } /** * Coalesce. * * @param null|mixed $ifNotNull If not null, return this * @param mixed $then Else this * * @return mixed */ public static function coalesce($ifNotNull, $then) { return isset($ifNotNull) ?: $then; } }