Skip to content

Commit

Permalink
Fix two bugs (missed porting to new class names / namespaces), thanks…
Browse files Browse the repository at this point in the history
… SensiolabsInsight
  • Loading branch information
gggeek committed Feb 21, 2015
1 parent e070014 commit 5f01a1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Client.php
Expand Up @@ -336,7 +336,7 @@ public function & send($msg, $timeout = 0, $method = '')

return $r;
} elseif (is_string($msg)) {
$n = new Message('');
$n = new Request('');
$n->payload = $msg;
$msg = $n;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Wrapper.php
Expand Up @@ -437,7 +437,7 @@ public function wrap_php_class($classname, $extra_options = array())
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))))
Expand Down

0 comments on commit 5f01a1f

Please sign in to comment.