Fix latest php warning