Cassandra\Float "is a reserved word" #3
Labels
bug
Something isn't working
good first issue
Good for newcomers
question
Further information is requested
Milestone
I found an issue when using the Cassandra\Float class as a return type hint in PHP 8.0.9
Using the class name directly causes the following error:
Even when aliased, the compiler still throws an error, albeit a different one:
Example code
Removing the return type hint solves the problem, but shouldn't be required.
To be honest, this feels like it might be a PHP bug rather than an issue with the Cassandra extension, but it may be something that should be addressed here anyway; "float" is a reserved word and the class name may need to be changed to avoid issues in the future
As far as I can tell the only other "type" that might be an issue is Cassandra\Numeric, but that is only "soft" reserved
The text was updated successfully, but these errors were encountered: