diff --git a/src/Models/ClientOptions.php b/src/Models/ClientOptions.php index 41a9014..2a7ab81 100644 --- a/src/Models/ClientOptions.php +++ b/src/Models/ClientOptions.php @@ -95,9 +95,9 @@ class ClientOptions extends AuthOptions { public $httpClass = 'Ably\Http'; /** - * @var bool defaults to false for clients with version < 1.1, otherwise true + * @var bool defaults to false for clients with version < 1.2, otherwise true */ - public $idempotentRestPublishing = AblyRest::API_VERSION >= '1.1'; + public $idempotentRestPublishing = AblyRest::API_VERSION >= '1.2'; /** * @var string a class that should be used for Auth diff --git a/tests/TypesTest.php b/tests/TypesTest.php index de9ec6c..1f93172 100644 --- a/tests/TypesTest.php +++ b/tests/TypesTest.php @@ -161,7 +161,7 @@ public function testClientOptionsIdempotent() { // Test default value $co = new \Ably\Models\ClientOptions(); - if (AblyRest::API_VERSION <= '1.0') { + if (AblyRest::API_VERSION <= '1.1') { $this->assertEquals( false, $co->idempotentRestPublishing ); } else { $this->assertEquals( true, $co->idempotentRestPublishing );