Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Returning FALSE means we can only return errors on one condition, or that callers have to infer what the error is. It also makes callers have to opt in to error checking, and it's way too easy to forget to do that.
Comments
Comment #1
Dave ReidFixed in 7.x-3.x now, throws InvalidArgumentException!
Comment #3
deviantintegral CreditAttribution: deviantintegral as a volunteer commented:+100:
I think you can get rid of the else clause now.