[Bug]: The PropertyInfo component was not able to guess the type of Company::$edAt. You may need to add a @var
annotation or use @OA\Property(type="")
to make its type explicit
#2286
Labels
Version
4.26
Description
Whenever I document a property that has a getter method with the word "ADD" in its name, the bundle fails with the following error:
The PropertyInfo component was not able to guess the type of Company::$edAt. You may need to add a `@var` annotation or use `@OA\Property(type="")` to make its type explicit
In this error, the property
addedAt
has a getter method with the same nameaddedAt()
, and the bundle parses or interprets the ADD part, and only reads the rest (in this caseedAt
).Company class
Company Controller
Additional context
Check this reproducible repository, and you can see it yourself.
https://github.com/tomasvts/nelmioApiDocBundleBug
Note: If I change the name of the getter to getAddedAt(), the problem goes away, which is the temporary solution I'm using. Nevertheless, I believe I have the right to name my getters the way I want.
The text was updated successfully, but these errors were encountered: