fix php strict warning