The doc says that null is allowed as the second parameter in addition to array and ExecutionOptions. However when you try to pass it null the following exception is thrown.
options must be an instance of Cassandra\ExecutionOptions or an array or null, given
The API reference on Datastax.com doesn't mention null as a possible value.
I believe the issue is related to the following code:
I think the parameter types should be defined as "z|z!" in order to allow null.
I was going to submit a PR, but wasn't sure whether you would rather not allow null, or would just rather fix the documentation and error message.
(Also, the vagrant box composer install failed when I tried to set it up)
The documentation for DefaultSession methods execute, executeAsync, prepare appears to be incorrect.
https://github.com/datastax/php-driver/blob/master/ext/doc/Cassandra/DefaultSession.php
The doc says that null is allowed as the second parameter in addition to array and ExecutionOptions. However when you try to pass it null the following exception is thrown.
options must be an instance of Cassandra\ExecutionOptions or an array or null, given
The API reference on Datastax.com doesn't mention null as a possible value.
I believe the issue is related to the following code:
I think the parameter types should be defined as "z|z!" in order to allow null.
I was going to submit a PR, but wasn't sure whether you would rather not allow null, or would just rather fix the documentation and error message.
(Also, the vagrant box composer install failed when I tried to set it up)