forked from datastax/php-driver
-
-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
I wanted to use scylladb-php-driver with PHP 8.4. But after installing the driver, suddenly other parts of my code broken. Here is a minimal reproducer:
<?php
$set = new \Ds\Set();
No output is expected. But with scylladb-php-driver installed, I get:
PHP Fatal error: Uncaught ArgumentCountError: Ds\Set::__construct() expects exactly 1 argument, 0 given in Standard input code:2
Stack trace:
#0 Standard input code(2): Ds\Set->__construct()
#1 {main}
thrown in Standard input code on line 2
I only found out that this is caused by scylladb-php-driver because with the modified code:
<?php
$set = new \Ds\Set([]);
I get:
PHP Warning: Array to string conversion in Standard input code on line 2
PHP Fatal error: Uncaught Cassandra\Exception\InvalidArgumentException: type must be a string or an instance of Cassandra\Type, Array given in Standard input code:2
Stack trace:
#0 Standard input code(2): Ds\Set->__construct()
#1 {main}
thrown in Standard input code on line 2
This caused me to uninstall scylladb-php-driver. And as mentioned earlier, then I had no problems whatsoever with running these two reproducers.
Metadata
Metadata
Assignees
Labels
No labels