Open gondwanasoft opened 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.
Version 9's php 7.2 minimum and return types will help with this.
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.