@@ -93,7 +93,7 @@ public function custom_json_exception_renderer(): void
9393 fn () => new GenericRequest (Method::GET , '/test ' , headers: ['Accept ' => 'application/json ' ]),
9494 );
9595
96- $ this ->callExceptionHandler (function () {
96+ $ this ->callExceptionHandler (function (): void {
9797 $ handler = $ this ->container ->get (HttpExceptionHandler::class);
9898 $ handler ->handle (new CustomValidationException ('Custom validation failed ' ));
9999 });
@@ -117,7 +117,7 @@ public function custom_html_exception_renderer(): void
117117 fn () => new GenericRequest (Method::GET , '/test ' , headers: ['Accept ' => 'text/html ' ]),
118118 );
119119
120- $ this ->callExceptionHandler (function () {
120+ $ this ->callExceptionHandler (function (): void {
121121 $ handler = $ this ->container ->get (HttpExceptionHandler::class);
122122 $ handler ->handle (new CustomValidationException ('Custom validation failed ' ));
123123 });
@@ -138,7 +138,7 @@ public function falls_back_to_default_renderer_when_no_custom_match(): void
138138 fn () => new GenericRequest (Method::GET , '/test ' , headers: ['Accept ' => 'application/json ' ]),
139139 );
140140
141- $ this ->callExceptionHandler (function () {
141+ $ this ->callExceptionHandler (function (): void {
142142 $ handler = $ this ->container ->get (HttpExceptionHandler::class);
143143 $ handler ->handle (new Exception ('Regular exception ' ));
144144 });
@@ -160,7 +160,7 @@ public function priority_ordering(): void
160160 fn () => new GenericRequest (Method::GET , '/test ' , headers: ['Accept ' => 'application/json ' ]),
161161 );
162162
163- $ this ->callExceptionHandler (function () {
163+ $ this ->callExceptionHandler (function (): void {
164164 $ handler = $ this ->container ->get (HttpExceptionHandler::class);
165165 $ handler ->handle (new CustomValidationException ('Test ' ));
166166 });
0 commit comments