From 9c35037a23ea6491bdf710260e8958902fc07605 Mon Sep 17 00:00:00 2001 From: gggeek Date: Sun, 19 Apr 2015 19:42:13 +0100 Subject: [PATCH] Fix: encoder needs the kindOf method on requests --- lib/xmlrpc.inc | 10 ---------- src/Request.php | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) 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. * -- 2.43.0