DEV Community

Discussion on: Collection objects in PHP

Collapse
 
sebastienbarre profile image
Sebastien Barre

Guys. Maybe don't do that? Use strict typing and the splat/spread operator, as shown here, so you can add or more values, and you get type checking exceptions for free:
medium.com/2dotstwice-connecting-t...