fixed enum cast for top reviews endpoint #548

This commit is contained in:
pushrbx 2024-07-26 13:52:24 +01:00
parent 9b9757c11f
commit 6e4ff113e3
No known key found for this signature in database
GPG Key ID: A16A474BBC2C91D9

View File

@ -23,6 +23,6 @@ final class QueryTopReviewsCommand extends QueryTopItemsCommand implements DataR
{
use HasRequestFingerprint, HasPreliminaryParameter, HasSpoilersParameter, PreparesData;
#[WithCast(EnumCast::class, TopAnimeFilterEnum::class), EnumValidation(TopReviewsTypeEnum::class)]
#[WithCast(EnumCast::class, TopReviewsTypeEnum::class), EnumValidation(TopReviewsTypeEnum::class)]
public TopReviewsTypeEnum|Optional $type;
}