duoshuo / php-cassandra

php Cassandra driver which support Protocol v3 (Cassandra 2.1) and asynchronous requests
MIT License
153 stars 53 forks source link

Fix In Batch File #71

Open vinothbabu13 opened 8 years ago

vinothbabu13 commented 8 years ago

Getting PHP Warning: Declaration of Cassandra\Request\Batch::queryParameters($consistency, array $options = Array) should be compatible with Cassandra\Request\Request::queryParameters($consistency, array $values = Array, array $options = Array) in /var/www/html/php-cassandra/src/Request/Batch.php on line 122 for PHP7

vinothbabu13 commented 8 years ago

Fix for the following error

FatalErrorException in Exception.php line 4: Class Cassandra\Response\Exception cannot extend from interface Cassandra\Exception

vinothbabu13 commented 8 years ago

@pincher2012 - Sorry i have reverted that implements to extends as it is the class and i have done one more fix now for the following error,

FatalErrorException in Exception.php line 4:
Class Cassandra\Response\Exception cannot extend from interface Cassandra\Exception

File - src\Response\Error.php Line - 126

return new Exception($data['message'], $data['code']);
To
return new \Exception($data['message'], $data['code']);