Fix php version compatibility