adapted method signature to new PHP strict warning