-
-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Description
Just a scratch:
interface HasIterableType
{
public TypeReflector $iterableType { get; }
}
class HasMany implements HasIterableType {}
public function getIterableType(): ?TypeReflector
{
if ($this->hasAttribute(HasIterableType::class)) {
return $this->getAttribute(HasIterableType::class)->iterableType;
}
// Fallback to docblock parsing
}