MAIN-2681 fix php warnings