Closed Rikj000 closed 9 months ago
I wonder if you have updated your import statement?
Annotations use:
use OpenApi\Annotations as OA;
Attributes use:
use OpenApi\Attributes as OA;
Personally I actually prefer
use OpenApi\Attributes as OAT;
to make things even clearer.
I wonder if you have updated your import statement?
@DerManoMann that was indeed my issue, I did not update my import statement.. 🤦
Thank you for your quick reply!
I'll close the issue since it's resolved for me now 🙂
Environment:
Description:
Annotating through PHP Attributes does not work correctly out of the box.
Annotating with PHP Doc blocks works correctly.
When trying to annotate through PHP Attributes:
My IDE throws warnings like:
My CLI throws errors when I run
php artisan l5-swagger:generate
, like:Steps To Reproduce:
DarkaOnLine/L5-Swagger
withphp composer require darkaonline/l5-swagger
Note
Is there anything I'm missing here?
I saw in #514 that PHP Attributes should be supported by this library,
however the docs there do not mention anything about additional dependencies / configurations
which would be needed to make PHP Attributes work.