WordPress at a glance
function is not described

_WP_Dependency::__construct() public WP 2.6.0

Setup dependencies.

{} It's a method of the class: _WP_Dependency{}

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

````. Null. Nothing.

Usage

$_WP_Dependency = new _WP_Dependency();
$_WP_Dependency->__construct( ...$args );
...$args(mixed) (required)
Dependency information.

Changelog

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

Code of _WP_Dependency::__construct() WP 5.7

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