wp/wp-includes/IXR/class-IXR-clientmulticall.php
changeset 16 a86126ab1dd4
parent 7 cf61fcea0001
--- a/wp/wp-includes/IXR/class-IXR-clientmulticall.php	Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-includes/IXR/class-IXR-clientmulticall.php	Tue Dec 15 13:49:49 2020 +0100
@@ -25,9 +25,13 @@
 		self::__construct( $server, $path, $port );
 	}
 
-    function addCall()
+	/**
+	 * @since 1.5.0
+	 * @since 5.5.0 Formalized the existing `...$args` parameter by adding it
+	 *              to the function signature.
+	 */
+    function addCall( ...$args )
     {
-        $args = func_get_args();
         $methodName = array_shift($args);
         $struct = array(
             'methodName' => $methodName,
@@ -36,7 +40,14 @@
         $this->calls[] = $struct;
     }
 
-    function query()
+	/**
+	 * @since 1.5.0
+	 * @since 5.5.0 Formalized the existing `...$args` parameter by adding it
+	 *              to the function signature.
+	 *
+	 * @return bool
+	 */
+    function query( ...$args )
     {
         // Prepare multicall, then call the parent::query() method
         return parent::query('system.multicall', $this->calls);