File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -27,23 +27,23 @@ public function loadClass(string $class)
2727 * @param object $class
2828 * @param string $method
2929 * @param array $parameters
30- * @return mixed
30+ * @return string
3131 */
32- public function loadClassMethod ($ class , string $ method , array $ parameters )
32+ public function loadClassMethod ($ class , string $ method , array $ parameters ): string
3333 {
34- return call_user_func_array ([$ class , $ method ], array_values ($ parameters ));
34+ return ( string ) call_user_func_array ([$ class , $ method ], array_values ($ parameters ));
3535 }
3636
3737 /**
3838 * Load closure
3939 *
4040 * @param Callable $closure
4141 * @param array $parameters
42- * @return mixed
42+ * @return string
4343 */
44- public function loadClosure (Callable $ closure , array $ parameters )
44+ public function loadClosure (callable $ closure , array $ parameters ): string
4545 {
46- return call_user_func_array ($ closure , array_values ($ parameters ));
46+ return ( string ) call_user_func_array ($ closure , array_values ($ parameters ));
4747 }
4848
4949}
Original file line number Diff line number Diff line change @@ -427,7 +427,7 @@ public function routeRequest(): ?string
427427 $ routeOutput = $ route ->renderRoute ($ this ->request , $ this );
428428
429429 if ($ this ->renderMultipleRoutes === true ) {
430- if ($ routeOutput !== null ) {
430+ if ($ routeOutput !== '' ) {
431431 return $ routeOutput ;
432432 }
433433
You can’t perform that action at this time.
0 commit comments