From: gggeek Date: Sat, 21 Feb 2015 20:56:31 +0000 (+0000) Subject: Fix two bugs (missed porting to new class names / namespaces), thanks SensiolabsInsight X-Git-Tag: 4.0.0-alpha^2~181 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5f01a1f84d32893310c1d13e6d2720370a93f57d;p=plcapi.git Fix two bugs (missed porting to new class names / namespaces), thanks SensiolabsInsight --- diff --git a/src/Client.php b/src/Client.php index 57410a8a..4af4dcbf 100644 --- a/src/Client.php +++ b/src/Client.php @@ -336,7 +336,7 @@ class Client return $r; } elseif (is_string($msg)) { - $n = new Message(''); + $n = new Request(''); $n->payload = $msg; $msg = $n; } diff --git a/src/Wrapper.php b/src/Wrapper.php index 8e573e39..a710fddd 100644 --- a/src/Wrapper.php +++ b/src/Wrapper.php @@ -437,7 +437,7 @@ class Wrapper foreach ($mlist as $mname) { if ($methodfilter == '' || preg_match($methodfilter, $mname)) { // echo $mlist."\n"; - $func = new ReflectionMethod($classname, $mname); + $func = new \ReflectionMethod($classname, $mname); if (!$func->isPrivate() && !$func->isProtected() && !$func->isConstructor() && !$func->isDestructor() && !$func->isAbstract()) { if (($func->isStatic && ($methodtype == 'all' || $methodtype == 'static' || ($methodtype == 'auto' && is_string($classname)))) || (!$func->isStatic && ($methodtype == 'all' || $methodtype == 'nonstatic' || ($methodtype == 'auto' && is_object($classname))))