public static function create(...$arguments)
    {
        trigger_error(__METHOD__.'() has been deprecated and will be removed from v2.', E_USER_DEPRECATED);

        if (isset($arguments[0]) && is_string($arguments[0])) {
            return new static([], $arguments[0], $arguments[1] ?? []);
        }

        return new static(...$arguments);
    }
public static function create(...$arguments)
    {
        trigger_error(__METHOD__.'() has been deprecated and will be removed from v2.', E_USER_DEPRECATED);

        if (isset($arguments[0]) && is_string($arguments[0])) {
            return new static([], $arguments[0], $arguments[1] ?? []);
        }

        return new static(...$arguments);
    }
public static function create ( ... $ arguments ) { trigger_error ( __METHOD__ . '() has been deprecated and will be removed from v2.' , E_USER_DEPRECATED ) ; if ( isset ( $ arguments [ 0 ] ) && is_string ( $ arguments [ 0 ] ) ) { return new static ( [ ] , $ arguments [ 0 ] , $ arguments [ 1 ] ?? [ ] ) ; } return new static ( ... $ arguments ) ; }
Create a new JS function.

@deprecated 2.0.0 Chaining methods should be used instead.
Create a new JS function .