ReflectionClass::newInstanceArgs

( excerpt from http://php.net/manual/en/reflectionclass.newinstanceargs.php )

public function newInstanceArgs(
  Traversable<mixed> $args = vec [
],
);

Creates a new instance of the class, the given arguments are passed to the class constructor.

Parameters

Returns

  • mixed - Returns a new instance of the class.