> $attributes */ $attributes = array_filter($reflection->getAttributes(), fn ($attr) => $attr->getName() === \Attribute::class); self::assertCount(1, $attributes, 'Versioned class should have the Attribute attribute'); $attribute = $attributes[0]; self::assertEquals(\Attribute::TARGET_PROPERTY, $attribute->getArguments()[0]); } }