snytkine / LampCMS

Open source Question and Answer program similar to StackOverflow and Quora in PHP + MongoDB. Follow @snytkine on Twitter
http://support.lampcms.com
323 stars 104 forks source link

Rename User::factory to User::userFactory #101

Closed snytkine closed 11 years ago

snytkine commented 12 years ago

This has to be done because factory in User class does not have the same signature as factory in Mongo\Doc class and it causes warning with php strict standard.

The solution is to either update the factory method in User class to make it the same signature as Mongo\Doc class and then update all places that uses it or simple rename it to become a different method like userFactory in which case can search/replace all calling classes.

Right now now sure which one of the solutions is easier and will cause fewer potential problems.

Turning off E_STRICT would be the best solution for now. Must do this very early like in index.php

snytkine commented 11 years ago

This is fixed now