Skip to content

Conversation

@vinothbabu13
Copy link

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

namespace Cassandra\Response;

class Exception extends \Cassandra\Exception {}
class Exception implements \Cassandra\Exception {}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why implements? \Cassandra\Exception is class but not interface.

Class Cassandra\Response\Exception cannot extend from interface Cassandra\Exception
@vinothbabu13
Copy link
Author

Fix for the following error

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

@vinothbabu13
Copy link
Author

@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']);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants