From af40927c7d9914e29e90e77bdb75e6104f846b08 Mon Sep 17 00:00:00 2001
From: jrfnl <jrfnl@users.noreply.github.com>
Date: Thu, 18 Jul 2019 02:33:02 +0200
Subject: [PATCH] Use spread operator in _WP_Dependency::__construct()

---
 src/wp-includes/class-wp-dependency.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

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();
 		}
-- 
2.21.0.windows.1

