fix php version issue #14 from ErrorResponsePlugin