From: gggeek Date: Sun, 19 Apr 2015 18:42:13 +0000 (+0100) Subject: Fix: encoder needs the kindOf method on requests X-Git-Tag: 4.0.0-alpha^2~74 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=9c35037a23ea6491bdf710260e8958902fc07605 Fix: encoder needs the kindOf method on requests --- diff --git a/lib/xmlrpc.inc b/lib/xmlrpc.inc index 9106bd6..2bcead0 100644 --- a/lib/xmlrpc.inc +++ b/lib/xmlrpc.inc @@ -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 diff --git a/src/Request.php b/src/Request.php index df899e3..2c47940 100644 --- a/src/Request.php +++ b/src/Request.php @@ -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. *