Thank you for you reply. I've discussed this topic with people in #symfony-dev channel on Freenode, and get answer from there.
Symfony is doing things right, it's just some of my misunderstanding. :) On Thu, Mar 24, 2011 at 10:03 PM, Jeremiah Dodds <[email protected]>wrote: > > > On Tue, Mar 22, 2011 at 11:35 PM, Lixin Yu <[email protected]> wrote: > >> >> So, is 'return null' a good/bad practice in php? >> > > If you return null consistently as a "none" value, it's not a bad one. If > you're inconsistent about it, or if you use it in places where it wouldn't > make much sense, it would be a bad one. > > Did the book you read give any reasons other than clarity for returning > null being considered a bad practice? > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- *Never say die* -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
