diff --git a/src/wp-includes/class-wp-dependency.php b/src/wp-includes/class-wp-dependency.php index fc8099d5b9..12a3b94634 100644 --- a/src/wp-includes/class-wp-dependency.php +++ b/src/wp-includes/class-wp-dependency.php @@ -87,9 +87,11 @@ class _WP_Dependency { * Setup dependencies. * * @since 2.6.0 + * + * @param ...$args Dependency information. */ - public function __construct() { - list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = func_get_args(); + public function __construct( ...$args ) { + list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = $args; if ( ! is_array( $this->deps ) ) { $this->deps = array(); }