Fix PHP strict warnings