Life with 🐘 🐳 🐧 πŸ’»

Follow @DennisdeBest

PHP 8.1 Enums, Doctrine and Symfony EnumType

PHP 8.1 added Enums, this allows us to set a defined number of possible values for an array. It is a very interesting way of making sure only the values we want can be to a specific value.

So I started to play around with them, A while back and ran into a few issues with Doctrine and the Symfon...

Continue reading