PHP strict mode reference error fix