- Notifications
You must be signed in to change notification settings - Fork8k
Closed
Description
Description
The following code:
<?phpini_set('zend.exception_ignore_args','1');try {match (1) { };}catch (Error$e) {echo$e->getMessage(),PHP_EOL; }try {match ("foo bar baz foo bar baz") { };}catch (Error$e) {echo$e->getMessage(),PHP_EOL; }
Resulted in this output:
Unhandled match case 1Unhandled match case 'foo bar baz foo...'
But I expected this output instead:
Unhandled match case of type intUnhandled match case of type string
PHP Version
PHP 8.1.0 - PHP 8.4.3
Operating System
No response