You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a class has a __toString() method, it automatically receives the Stringable interface, so there is no need to declare it explicitly. To fix the error, you just need to remove the line: #[implements(ce::stringable())] and the code will work.
Hi
I encountered an issue with the __toString method
rust 1.80
ext-php-rs 0.12.0
php 8.3
rust code
php code
php -d extension=./target/debug/libphp_foo.so test.php
PHP Fatal error: Class Foo cannot implement previously implemented interface Stringable in Unknown on line 0
[1] 266183 IOT instruction php -d extension=./target/debug/libphp_foo.so test.php
The text was updated successfully, but these errors were encountered: