_WP_Dependency::__construct( mixed $args )

In this article

Setup dependencies.

Parameters

$argsmixedrequired
Dependency information.

Source

public function __construct( ...$args ) {
	list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = $args;
	if ( ! is_array( $this->deps ) ) {
		$this->deps = array();
	}
}

Changelog

VersionDescription
5.3.0Formalized the existing ...$args parameter by adding it to the function signature.
2.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.