Resolves PHP strict warnings