When I want a typed object, I need to create a class in a new file, and give it a name. (While technically not required, one class per file is highly recommended to work well with tools and IDEs we have to our disposal.)
It’s too expensive to add types in PHP.
You must log in or register to comment.