Skip to content

Commit

Permalink
Fixed a bug of getDeclaredOnlyInstanceMethods & getDeclaredOnlyInstan…
Browse files Browse the repository at this point in the history
…ceMethods
  • Loading branch information
andot committed Aug 1, 2016
1 parent 5c68a24 commit c8fd49b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Hprose/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* *
* hprose service class for php 5.3+ *
* *
* LastModified: Jul 30, 2016 *
* LastModified: Aug 1, 2016 *
* Author: Ma Bingyao <[email protected]> *
* *
\**********************************************************/
Expand Down Expand Up @@ -514,7 +514,7 @@ protected function delay($interval, $data) {
public function defaultHandle($request, stdClass $context) {
$error = null;
set_error_handler(function($errno, $errstr, $errfile, $errline) use (&$error) {
$error = new \ErrorException($errstr, 0, $errno, $errfile, $errline);
$error = new ErrorException($errstr, 0, $errno, $errfile, $errline);
}, $this->errorTypes);
ob_start();
ob_implicit_flush(0);
Expand All @@ -540,7 +540,7 @@ private static function getDeclaredOnlyMethods($class) {
return array_diff($result, self::$magicMethods);
}
private static function getDeclaredOnlyInstanceMethods($class) {
$methods = getDeclaredOnlyMethods($class);
$methods = self::getDeclaredOnlyMethods($class);
$instanceMethods = array();
foreach ($methods as $name) {
$method = new ReflectionMethod($class, $name);
Expand All @@ -558,7 +558,7 @@ private static function getDeclaredOnlyInstanceMethods($class) {
return $instanceMethods;
}
private static function getDeclaredOnlyStaticMethods($class) {
$methods = getDeclaredOnlyMethods($class);
$methods = self::getDeclaredOnlyMethods($class);
$instanceMethods = array();
foreach ($methods as $name) {
$method = new ReflectionMethod($class, $name);
Expand Down

0 comments on commit c8fd49b

Please sign in to comment.