Skip to content

Commit 0c9356f

Browse files
authored
Merge pull request #8 from qkdreyer/doc
doc: update
2 parents c4f7dfa + 0310c23 commit 0c9356f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+71
-59
lines changed

ext/doc/Cassandra.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,12 +379,12 @@ final class Cassandra
379379
/**
380380
* The current version of the extension.
381381
*/
382-
const VERSION = '1.4.0';
382+
const VERSION = '1.5.0';
383383

384384
/**
385385
* The version of the cpp-driver the extension is compiled against.
386386
*/
387-
const CPP_DRIVER_VERSION = '2.16.2';
387+
const CPP_DRIVER_VERSION = '2.17.1';
388388

389389
/**
390390
* Creates a new cluster builder for constructing a Cluster object.

ext/doc/Cassandra/BatchStatement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ final class BatchStatement implements Statement
4444
*
4545
* @param int $type must be one of \Cassandra::BATCH_* (default: \Cassandra::BATCH_LOGGED).
4646
*/
47-
public function __construct(int $type = null)
47+
public function __construct(?int $type = null)
4848
{
4949
}
5050

ext/doc/Cassandra/Cluster.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface Cluster
3131
*
3232
* @return \Cassandra\Session Session instance
3333
*/
34-
public function connect(string $keyspace = null, int $timeout = null): \Cassandra\Session;
34+
public function connect(?string $keyspace = null, ?int $timeout = null): \Cassandra\Session;
3535

3636
/**
3737
* Creates a new Session instance.
@@ -40,5 +40,5 @@ public function connect(string $keyspace = null, int $timeout = null): \Cassandr
4040
*
4141
* @return \Cassandra\Future A Future Session instance
4242
*/
43-
public function connectAsync(string $keyspace = null): \Cassandra\Future;
43+
public function connectAsync(?string $keyspace = null): \Cassandra\Future;
4444
}

ext/doc/Cassandra/Cluster/Builder.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function withWhiteListDCs(string $dcs): \Cassandra\Cluster\Builder
176176
*
177177
* @return \Cassandra\Cluster\Builder self
178178
*/
179-
public function withTokenAwareRouting(bool $enabled = null): \Cassandra\Cluster\Builder
179+
public function withTokenAwareRouting(?bool $enabled = null): \Cassandra\Cluster\Builder
180180
{
181181
}
182182

@@ -232,7 +232,7 @@ public function withSSL(\Cassandra\SSLOptions $options): \Cassandra\Cluster\Buil
232232
*
233233
* @return \Cassandra\Cluster\Builder self
234234
*/
235-
public function withPersistentSessions(bool $enabled = null): \Cassandra\Cluster\Builder
235+
public function withPersistentSessions(?bool $enabled = null): \Cassandra\Cluster\Builder
236236
{
237237
}
238238

@@ -281,7 +281,7 @@ public function withIOThreads(int $count): \Cassandra\Cluster\Builder
281281
*
282282
* @return \Cassandra\Cluster\Builder self
283283
*/
284-
public function withConnectionsPerHost(int $core, int $max = null): \Cassandra\Cluster\Builder
284+
public function withConnectionsPerHost(int $core, ?int $max = null): \Cassandra\Cluster\Builder
285285
{
286286
}
287287

@@ -304,7 +304,7 @@ public function withReconnectInterval(float $interval): \Cassandra\Cluster\Build
304304
*
305305
* @return \Cassandra\Cluster\Builder self
306306
*/
307-
public function withLatencyAwareRouting(bool $enabled = null): \Cassandra\Cluster\Builder
307+
public function withLatencyAwareRouting(?bool $enabled = null): \Cassandra\Cluster\Builder
308308
{
309309
}
310310

@@ -315,7 +315,7 @@ public function withLatencyAwareRouting(bool $enabled = null): \Cassandra\Cluste
315315
*
316316
* @return \Cassandra\Cluster\Builder self
317317
*/
318-
public function withTCPNodelay(bool $enabled = null): \Cassandra\Cluster\Builder
318+
public function withTCPNodelay(?bool $enabled = null): \Cassandra\Cluster\Builder
319319
{
320320
}
321321

@@ -368,7 +368,7 @@ public function withTimestampGenerator(\Cassandra\TimestampGenerator $generator)
368368
*
369369
* @return \Cassandra\Cluster\Builder self
370370
*/
371-
public function withSchemaMetadata(bool $enabled = null): \Cassandra\Cluster\Builder
371+
public function withSchemaMetadata(?bool $enabled = null): \Cassandra\Cluster\Builder
372372
{
373373
}
374374

@@ -387,7 +387,7 @@ public function withSchemaMetadata(bool $enabled = null): \Cassandra\Cluster\Bui
387387
*
388388
* @return \Cassandra\Cluster\Builder self
389389
*/
390-
public function withHostnameResolution(bool $enabled = null): \Cassandra\Cluster\Builder
390+
public function withHostnameResolution(?bool $enabled = null): \Cassandra\Cluster\Builder
391391
{
392392
}
393393

@@ -404,7 +404,7 @@ public function withHostnameResolution(bool $enabled = null): \Cassandra\Cluster
404404
*
405405
* @return \Cassandra\Cluster\Builder self
406406
*/
407-
public function withRandomizedContactPoints(bool $enabled = null): \Cassandra\Cluster\Builder
407+
public function withRandomizedContactPoints(?bool $enabled = null): \Cassandra\Cluster\Builder
408408
{
409409
}
410410

ext/doc/Cassandra/Column.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public function type(): \Cassandra\Type;
4040
/**
4141
* Returns whether the column is in descending or ascending order.
4242
*
43+
* @deprecated
44+
*
4345
* @return bool Whether the column is stored in descending order.
4446
*/
4547
public function isReversed(): bool;
@@ -61,13 +63,17 @@ public function isFrozen(): bool;
6163
/**
6264
* Returns name of the index if defined.
6365
*
66+
* @deprecated
67+
*
6468
* @return string Name of the index if defined or null
6569
*/
6670
public function indexName(): string;
6771

6872
/**
6973
* Returns index options if present.
7074
*
75+
* @deprecated
76+
*
7177
* @return string Index options if present or null
7278
*/
7379
public function indexOptions(): string;

ext/doc/Cassandra/Date.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class Date implements \Stringable, Value
2828
*
2929
* @param int $seconds Absolute seconds from epoch (1970, 1, 1), can be negative, defaults to current time.
3030
*/
31-
public function __construct(int $seconds = null)
31+
public function __construct(?int $seconds = null)
3232
{
3333
}
3434

@@ -55,7 +55,7 @@ public function seconds(): int
5555
*
5656
* @return \DateTime PHP representation
5757
*/
58-
public function toDateTime(\Cassandra\Time $time = null): \DateTime
58+
public function toDateTime(?\Cassandra\Time $time = null): \DateTime
5959
{
6060
}
6161

ext/doc/Cassandra/DefaultCluster.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class DefaultCluster implements Cluster
3333
*
3434
* @return \Cassandra\Session Session instance
3535
*/
36-
public function connect(string $keyspace = null, int $timeout = null): \Cassandra\Session
36+
public function connect(?string $keyspace = null, ?int $timeout = null): \Cassandra\Session
3737
{
3838
}
3939

@@ -44,7 +44,7 @@ public function connect(string $keyspace = null, int $timeout = null): \Cassandr
4444
*
4545
* @return \Cassandra\Future A Future Session instance
4646
*/
47-
public function connectAsync(string $keyspace = null): \Cassandra\Future
47+
public function connectAsync(?string $keyspace = null): \Cassandra\Future
4848
{
4949
}
5050
}

ext/doc/Cassandra/DefaultColumn.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public function type(): \Cassandra\Type
4444
/**
4545
* Returns whether the column is in descending or ascending order.
4646
*
47+
* @deprecated
48+
*
4749
* @return bool Whether the column is stored in descending order.
4850
*/
4951
public function isReversed(): bool
@@ -71,6 +73,8 @@ public function isFrozen(): bool
7173
/**
7274
* Returns name of the index if defined.
7375
*
76+
* @deprecated
77+
*
7478
* @return string Name of the index if defined or null
7579
*/
7680
public function indexName(): string
@@ -80,6 +84,8 @@ public function indexName(): string
8084
/**
8185
* Returns index options if present.
8286
*
87+
* @deprecated
88+
*
8389
* @return string Index options if present or null
8490
*/
8591
public function indexOptions(): string

ext/doc/Cassandra/DefaultKeyspace.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function materializedViews(): array
127127
*
128128
* @return \Cassandra\Function_|null A function or null
129129
*/
130-
public function function_(string $name, ...$params)
130+
public function function(string $name, ...$params)
131131
{
132132
}
133133

ext/doc/Cassandra/DefaultSchema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class DefaultSchema implements Schema
2828
*
2929
* @param string $name Name of the keyspace to get
3030
*
31-
* @return \Cassandra\Keyspace Keyspace instance or null
31+
* @return \Cassandra\Keyspace
3232
*/
3333
public function keyspace(string $name): \Cassandra\Keyspace
3434
{

0 commit comments

Comments
 (0)