fix php version need trait