- Added an event manager for Lean's route dispatching

This commit is contained in:
Dave Mc Nicoll committed 2023-05-30 15:37:03 -04:00
1 parent f0082bf0a9
commit 8390506361
8 files changed
+102 -70

No files matched your search

+1 -1
View File
@@ -92,7 +92,7 @@ trait ControllerTrait {
return new HtmlResponse($html, $code, $headers);
}
public static function renderJson(/*\JsonSerializable|array*/ $data, int $code = 200, array $headers = []) : ResponseInterface
public static function renderJson(mixed $data, int $code = 200, array $headers = []) : ResponseInterface
{
return new JsonResponse($data, $code, $headers);
}