Skip to content

Variable arguments do not work #629

@Tatsh

Description

@Tatsh
  /**
   * Constructor. Accepts multiple arguments or only a single array argument.
   *
   * @param mixed $arg First item of the array.
   * @param mixed $arg,... Second item of the array.
   * @return sArray
   */
  public function __construct($arg = NULL) {
    if (is_array($arg)) {
      $this->data = array_values($arg);
      return;
    }

    $this->data = func_get_args();
  }

This only shows in the documentation as having the $arg parameter.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions