BenSampo / laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.
https://sampo.co.uk/blog/using-enums-in-laravel
MIT License
2k stars 164 forks source link

Fix getAttributeDescription() error #264

Closed PortableSteve closed 2 years ago

PortableSteve commented 2 years ago

Related Issue/Intent Resolves #263

Changes Calling MyEnum::getDescription($value) with an invalid value now returns an empty string, rather than throwing an error. This is in line with the behaviour in v4.

Breaking changes N/A

BenSampo commented 2 years ago

Thank you @PortableSteve 👍