PHP 7 compatibility - fixing class constructors.
Authored by: hansfn 2016-07-28
Parent: [r4474]
Child: [r4476]