, Mar 22, 2011 at 11:35 PM, Lixin Yu lixinf...@gmail.com 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
Hello, I just read the Book Clean Code. It mentioned that 'return null'
is a bad coding practice.
But I see many 'return null' in symfony generated code. ( for example:
doSelectOne() function. )
So, is 'return null' a good/bad practice in php?
--
*Never say die*
--
If you want to report a