fix php strict standards warnings