@@ -199,7 +199,7 @@ public function initialize()
199199 * @param \CodeIgniter\Router\RouteCollectionInterface $routes
200200 * @param boolean $returnResponse
201201 *
202- * @throws \CodeIgniter\HTTP\RedirectException
202+ * @throws \CodeIgniter\Filters\Exceptions\FilterException
203203 * @throws \Exception
204204 */
205205 public function run (RouteCollectionInterface $ routes = null , bool $ returnResponse = false )
@@ -234,7 +234,7 @@ public function run(RouteCollectionInterface $routes = null, bool $returnRespons
234234 {
235235 return $ this ->handleRequest ($ routes , $ cacheConfig , $ returnResponse );
236236 }
237- catch (Router \ RedirectException $ e )
237+ catch (\ CodeIgniter \ Filters \ Exceptions \ FilterException $ e )
238238 {
239239 $ logger = Services::logger ();
240240 $ logger ->info ('REDIRECTED ROUTE at ' . $ e ->getMessage ());
@@ -280,7 +280,7 @@ public function useSafeOutput(bool $safe = true)
280280 * @return \CodeIgniter\HTTP\RequestInterface|\CodeIgniter\HTTP\Response|\CodeIgniter\HTTP\ResponseInterface|mixed
281281 * @throws \CodeIgniter\Filters\Exceptions\FilterException
282282 */
283- protected function handleRequest (RouteCollectionInterface $ routes = null , $ cacheConfig , bool $ returnResponse = false )
283+ protected function handleRequest (RouteCollectionInterface $ routes , $ cacheConfig , bool $ returnResponse = false )
284284 {
285285 $ routeFilter = $ this ->tryToRouteIt ($ routes );
286286
@@ -533,7 +533,7 @@ protected function forceSecureAccess($duration = 31536000)
533533 *
534534 * @throws \Exception
535535 *
536- * @return boolean
536+ * @return bool|\CodeIgniter\HTTP\ResponseInterface
537537 */
538538 public function displayCache ($ config )
539539 {
@@ -564,7 +564,9 @@ public function displayCache($config)
564564 $ this ->response ->setBody ($ output );
565565
566566 return $ this ->response ;
567- };
567+ }
568+
569+ return false ;
568570 }
569571
570572 //--------------------------------------------------------------------
@@ -574,7 +576,7 @@ public function displayCache($config)
574576 *
575577 * @param integer $time
576578 *
577- * @return $this
579+ * @return void
578580 */
579581 public static function cache (int $ time )
580582 {
@@ -683,7 +685,7 @@ public function displayPerformanceMetrics(string $output): string
683685 *
684686 * @return string
685687 */
686- protected function tryToRouteIt (RouteCollectionInterface $ routes = null )
688+ protected function tryToRouteIt (RouteCollectionInterface $ routes )
687689 {
688690 if (empty ($ routes ) || ! $ routes instanceof RouteCollectionInterface)
689691 {
0 commit comments