Fix: encoder needs the kindOf method on requests
authorgggeek <giunta.gaetano@gmail.com>
Sun, 19 Apr 2015 18:42:13 +0000 (19:42 +0100)
committergggeek <giunta.gaetano@gmail.com>
Sun, 19 Apr 2015 18:42:13 +0000 (19:42 +0100)
lib/xmlrpc.inc
src/Request.php

index 9106bd6..2bcead0 100644 (file)
@@ -138,16 +138,6 @@ class xmlrpcval extends PhpXmlRpc\Value
 
 class xmlrpcmsg extends PhpXmlRpc\Request
 {
-    /**
-     * Kept the old name even if Request class was renamed, for compatibility.
-     * @deprecated
-     *
-     * @return string
-     */
-    public function kindOf()
-    {
-        return 'msg';
-    }
 }
 
 class xmlrpcresp extends PhpXmlRpc\Response
index df899e3..2c47940 100644 (file)
@@ -357,6 +357,16 @@ class Request
         return $r;
     }
 
+    /**
+     * Kept the old name even if Request class was renamed, for compatibility.
+     *
+     * @return string
+     */
+    public function kindOf()
+    {
+        return 'msg';
+    }
+
     /**
      * Enables/disables the echoing to screen of the xmlrpc responses received.
      *