Hot tip 🔥
If you're passing an associative array around, consider converting it to an object. It'll better describe the domain, provide type checks (via constructor or properties assuming you're on PHP 7.4+), and potentially documentation if you add docblocks 😃
#php #phpc