Skip to content
Advertisement

symfony Declaration of AppSwaggerSwaggerDecorator::normalize must be compatible

I use api platform to create api rest but in configuration package i found this error.

enter image description here

I copie and paste this code in documentation :

https://api-platform.com/docs/core/jwt/#adding-endpoint-to-swaggerui-to-retrieve-a-jwt-token

and this is my code:

JavaScript

Advertisement

Answer

As explained in the error message, your method normalize shall be exactly the same as it was declared in the interface.

Replace:

JavaScript

By:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement