duoshuo / php-cassandra

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

PHP Fatal error: Class Cassandra\Type\Exception cannot extend from interface Cassandra\Exception #79

Open lounis opened 8 years ago

lounis commented 8 years ago

PHP Fatal error: Class Cassandra\Type\Exception cannot extend from interface Cassandra\Exception in vendor/duoshuo/php-cassandra/src/Type/Exception.php on line 4 PHP Stack trace:

PHP 13. Cassandra\Request\Request::valuesBinary( )vendor/duoshuo/php-cassandra/src/Request/Batch.php:67 PHP 14. spl_autoload_call() vendor/duoshuo/php-cassandra/src/Request/Batch.php:129 PHP 15. Composer\Autoload\ClassLoader->loadClass() vendor/duoshuo/php-cassandra/src/Request/Batch.php:0 PHP 16. Composer\Autoload\includeFile() vendor/composer/ClassLoader.php:301

bensialih commented 7 years ago

Should be extending base class Exception. remove \Cassandra\Exception replace with \Exception