Skip to content

Commit fb07b49

Browse files
author
Bulat Shakirzyanov
committed
fix constants path
1 parent dab04d7 commit fb07b49

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/Cassandra/DefaultSession.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ public function executeAsync(Statement $statement, ExecutionOptions $options = n
5858
if ($options) {
5959
if (isset($options->consistency)) {
6060
if (!in_array($options->consistency, array(
61-
Cassandra::CONSISTENCY_ANY,
62-
Cassandra::CONSISTENCY_ONE,
63-
Cassandra::CONSISTENCY_TWO,
64-
Cassandra::CONSISTENCY_THREE,
65-
Cassandra::CONSISTENCY_QUORUM,
66-
Cassandra::CONSISTENCY_ALL,
67-
Cassandra::CONSISTENCY_LOCAL_QUORUM,
68-
Cassandra::CONSISTENCY_EACH_QUORUM,
69-
Cassandra::CONSISTENCY_SERIAL,
70-
Cassandra::CONSISTENCY_LOCAL_SERIAL,
71-
Cassandra::CONSISTENCY_LOCAL_ONE))) {
61+
\Cassandra::CONSISTENCY_ANY,
62+
\Cassandra::CONSISTENCY_ONE,
63+
\Cassandra::CONSISTENCY_TWO,
64+
\Cassandra::CONSISTENCY_THREE,
65+
\Cassandra::CONSISTENCY_QUORUM,
66+
\Cassandra::CONSISTENCY_ALL,
67+
\Cassandra::CONSISTENCY_LOCAL_QUORUM,
68+
\Cassandra::CONSISTENCY_EACH_QUORUM,
69+
\Cassandra::CONSISTENCY_SERIAL,
70+
\Cassandra::CONSISTENCY_LOCAL_SERIAL,
71+
\Cassandra::CONSISTENCY_LOCAL_ONE))) {
7272
return new FutureException(new InvalidArgumentException(sprintf(
7373
"Invalid consistency, must be one of " .
7474
"Cassandra::CONSISTENCY_*, %s given",
@@ -81,8 +81,8 @@ public function executeAsync(Statement $statement, ExecutionOptions $options = n
8181

8282
if (isset($options->serialConsistency)) {
8383
if (!in_array($options->serialConsistency, array(
84-
Cassandra::CONSISTENCY_SERIAL,
85-
Cassandra::CONSISTENCY_LOCAL_SERIAL))) {
84+
\Cassandra::CONSISTENCY_SERIAL,
85+
\Cassandra::CONSISTENCY_LOCAL_SERIAL))) {
8686
return new FutureException(new InvalidArgumentException(sprintf(
8787
"Invalid serial consistency, must be " .
8888
"Cassandra::CONSISTENCY_SERIAL or " .

0 commit comments

Comments
 (0)