Closed MnKashpour closed 1 year ago
Same problem with TrophyType enum when I try to call type() on trophy
Getting the same at the moment.
I have just avoided the whole issue right now by doing public function type(): string and return $this->pluck('trophyType');
which works for my implementation right now. There's probably a preferred way to fix this, but I'll let the experts sort that out :)
Apologies, maybe I should read how new PHP features work before I try to add them 😂
When trying to get the platform of a title, this error occurs
Cannot instantiate enum Tustin\PlayStation\Enum\ConsoleType
This error happens after I've updated to the last commit, I think it's because the ConsoleType enum is now using the native php8.1 enums which cannot be instantiated with thenew
keyword