buttress / concrete5_codestyle_wg

A working group for improvements to concrete5's code style and developer experience
5 stars 2 forks source link

Defensive Programming #7

Open gondwanasoft opened 6 years ago

gondwanasoft commented 6 years ago

Don’t assume that all method calls succeed and return what you want. Unless a method call can’t possibly fail, test returned values and catch possible exceptions, then fail gracefully.

KorvinSzanto commented 5 years ago

Version 9's php 7.2 minimum and return types will help with this.