PHP
PHP Enums From the Query String: tryFrom() vs from()
You add ?status=paid filtering to an endpoint, write Status::from($_GET['status']), and it works. Then somebody requests ?status=PAID or ?status=refunded...
3 min read