PHP client library: "One of your parameters was incorrectly typed”