Follow

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 😃

Sign in to participate in the conversation
PHP Community on Mastodon

Open source. Open community. We are dedicated to building and enriching the PHP community.