#PHP object properties can only default to a simple expression. No function calls. You have to do it manually in the constructor. WTH?
1
@schwern I'm pretty sure that's standard for most languages. It doesn't make sense to call a function there cause it's a class *definition*
Oct 18, 2010 · 3:25 PM UTC

