When there are no arguments, we have these two options:
$obj = new MyClass;
vs.
$obj = new MyClass();
I always pick the former, just because.
Any thoughts?
|
When there are no arguments, we have these two options:
vs.
I always pick the former, just because. Any thoughts? |
|||||||||||||||||
|
|
Include them. It isn't much extra work and it won't confuse people that don't know that leaving them off the parenthesis is an option. |
|||||
|
|
Include them; with PHP, you want to be as specific and unambiguous as you can. |
|||||||||||
|