- Notifications
You must be signed in to change notification settings - Fork8k
Closed
Description
Description
The following code:
<?phpenum TestBackedEnum:string{case First ='first';}$client =newSoapClient('https://raw.githubusercontent.com/php/php-src/master/ext/soap/tests/classmap.wsdl');$book =newstdClass();$book->a = TestBackedEnum::First;$book->b ='';$client->dotest($book);
Resulted in this output:
PHP Fatal error: Uncaught Error: Object of class TestBackedEnum could not be converted to string
But I expected this output instead:
No errors
PHP Version
PHP 8.3.11
Operating System
No response