Closed
Description
Description
The following code:
<?php
ini_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 1
Unhandled match case 'foo bar baz foo...'
But I expected this output instead:
Unhandled match case of type int
Unhandled match case of type string
PHP Version
PHP 8.1.0 - PHP 8.4.3
Operating System
No response