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
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