Have a look at the following
#[PHPAttribute(PHPAttribute::TARGET_PROPERTY)]
final class Attribute
{
public function __construct(
protected ?string $name = null,
protected ?string $getter = null,
protected ?string $setter = null,
/**
* @var list<string>
- */
- protected array $groups = [],
+ */ protected array $groups = [],
) {}
}
Somehow it only happens when the docblock for the promoted property is defined as an array/list, I have plenty of other examples without any problem
public function __construct(
/**
* @var class-string<object> $class
*/
protected string $class,
protected string $name,
) {}