}', name: 'param_converter_test', methods: ['GET'])] public function convert(Request $request, #[Orm(mapping: 'id')] Person $person, #[MapQueryParameter(filter: \FILTER_VALIDATE_INT)] int $age ) : Response { $response = new JsonResponse([ 'sanitization' => [ 'name' => $person->GetName(), 'age' => $age, ] ]); $response->setEncodingOptions( $response->getEncodingOptions() | JSON_PRETTY_PRINT ); return $response; } }