Fix php strict warnings