It is a well known fact that PHP is missing a basic enum type, ignoring the rather incomplete SplEnum implementation which is only available as a PECL extension. There are also quite a few other userland enum implementations around, but all of them have one or another compromise. This library tries to close that gap as far as PHP allows it to.
sudo dnf install --advisory=FEDORA-2019-4e3b0f6eaf \*
Please login to add feedback.