phpdoc approach is working correctly as expected:
/**
* @OA\Server(
* url=L5_SWAGGER_CONST_HOST,
* description="L5 Swagger OpenApi dynamic host server"
* )
*/
But if I use PHP Attributes, it does not work:
#[OA\Server(url: 'L5_SWAGGER_CONST_HOST', description: 'L5 Swagger OpenApi dynamic host server')]
Is it possible to use dynamic constants inside Attributes ?
phpdoc approach is working correctly as expected:
But if I use PHP Attributes, it does not work:
Is it possible to use dynamic constants inside Attributes ?