diff --git a/flight/core/Dispatcher.php b/flight/core/Dispatcher.php index 82de9d1..8817af7 100644 --- a/flight/core/Dispatcher.php +++ b/flight/core/Dispatcher.php @@ -36,7 +36,7 @@ class Dispatcher { * @param array $params Callback parameters * @return string Output of callback */ - public function run($name, $params) { + public function run($name, array $params = array()) { $output = ''; // Run pre-filters @@ -117,8 +117,8 @@ class Dispatcher { * Executes a chain of method filters. * * @param array $filters Chain of filters - * @param object $params Method parameters - * @param object $output Method output + * @param array $params Method parameters + * @param mixed $output Method output */ public function filter($filters, &$params, &$output) { $args = array(&$params, &$output);