[php-src] Issue #10994: Enum FQN is not wrapped in double quotes in exception message in 8.2
| From: | lucasdotvin | Date: | Sun, 02 Apr 2023 01:16:08 +0000 |
| Subject: | [php-src] Issue #10994: Enum FQN is not wrapped in double quotes in exception message in 8.2 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-244081@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/10994
Author: lucasdotvin
### Description
The following code:
```php
<?php
enum PeriodicityUnit: string
{
case Day = 'day';
case Week = 'week';
case Month = 'month';
case Year = 'year';
}
PeriodicityUnit::from('dya');
```
Resulted in this output:
```
"dya" is not a valid backing value for enum OpenSaaS\Subify\Enums\PeriodicityUnit
```
But I expected this output instead:
```
"dya" is not a valid backing value for enum
"OpenSaaS\Subify\Enums\PeriodicityUnit"
```
The double quotes are not present in PHP 8.2.4, but it is in PHP 8.1.17.
### PHP Version
8.2.4
### Operating System
_No response_