fix php upgrade

@mfojtik merge please