xref: /PHP-8.2/Zend/tests/gh7792_2.phpt (revision 733023b2)
1--TEST--
2GH-7792 (Refer to enum as enum instead of class)
3--FILE--
4<?php
5
6enum Foo implements Throwable {}
7
8?>
9--EXPECTF--
10Fatal error: Enum Foo cannot implement interface Throwable in %s on line %d
11