Fix two bugs (missed porting to new class names / namespaces), thanks SensiolabsInsight
authorgggeek <giunta.gaetano@gmail.com>
Sat, 21 Feb 2015 20:56:31 +0000 (20:56 +0000)
committergggeek <giunta.gaetano@gmail.com>
Sat, 21 Feb 2015 20:56:31 +0000 (20:56 +0000)
src/Client.php
src/Wrapper.php

index 57410a8..4af4dcb 100644 (file)
@@ -336,7 +336,7 @@ class Client
 
             return $r;
         } elseif (is_string($msg)) {
-            $n = new Message('');
+            $n = new Request('');
             $n->payload = $msg;
             $msg = $n;
         }
index 8e573e3..a710fdd 100644 (file)
@@ -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))))