diff --git a/flight/Flight.php b/flight/Flight.php index 296457a..0ec7320 100644 --- a/flight/Flight.php +++ b/flight/Flight.php @@ -39,7 +39,7 @@ * * Request & Response. * @method static \flight\net\Request request() Returns Request instance. - * @method static \flight\net\Response response() Returns Request instance. + * @method static \flight\net\Response response() Returns Response instance. * @method static void redirect($url, $code = 303) Redirects to another URL. * @method static void json($data, $code = 200, $encode = true, $charset = "utf8", $encodeOption = 0, $encodeDepth = 512) Sends a JSON response. * @method static void jsonp($data, $param = 'jsonp', $code = 200, $encode = true, $charset = "utf8", $encodeOption = 0, $encodeDepth = 512) Sends a JSONP response. diff --git a/flight/core/Dispatcher.php b/flight/core/Dispatcher.php index 56465fe..e553b1c 100644 --- a/flight/core/Dispatcher.php +++ b/flight/core/Dispatcher.php @@ -188,7 +188,7 @@ class Dispatcher { public static function invokeMethod($func, array &$params = array()) { list($class, $method) = $func; - $instance = is_object($class); + $instance = is_object($class); switch (count($params)) { case 0: