Greetings!

For consistency reasons, we could agree on standards for data validation of parameters in magic methods, specifically, __get(), __set(), __isset(), and __unset(). Deciding on standards improves consistency and reduces the communication required for future components. Initial feedback I received was:

- checking the type of the first parameter is not worth the code bloat
- checking for an empty string is ok (and can easily happen when using variable interpolation with a variable that was accidentally empty)

Cheers,
Gavin

Reply via email to