1--TEST--
2Match errors show unmatched enum case
3--FILE--
4<?php
5
6enum Foo {
7 case Bar;
8 case Baz;
9}
10
11try {
12 match (Foo::Bar) {
13 Foo::Baz => 42,
14 };
15} catch (Error $e) {
16 echo $e->getMessage(), "\n";
17}
18
19?>
20--EXPECT--
21Unhandled match case Foo::Bar
22