\CouchbaseN1qlQuery::fromString returns NULL

This was working in 2.2.x

$query = \CouchbaseN1qlQuery::fromString("SELECT * FROM system:indexes WHERE name='{$name}' AND keyspace_id='{$this->name}'", NULL, FALSE);

It is now returning NULL in 2.3.x. Seems like old extension implementation was taking additional arguments, this change should be described in a changelog or something… removing NULL and FALSE from parameter list fixes it, but still the behaviour (returning null) is really strange…

Do you see any errors or warnings?

I wonder where did you find this version of call with 3 arguments. The latest only requires one (the string containing query)

http://docs.couchbase.com/sdk-api/couchbase-php-client-2.3.1/classes/Couchbase.N1qlQuery.html#method_fromString

Release 2.2.4 also has 1-argument version:

And 2.2.0 too