xref: /PHP-8.2/Zend/tests/enum/final.phpt (revision 663536d7)
1--TEST--
2Enum is final
3--FILE--
4<?php
5
6enum Foo {}
7
8class Bar extends Foo {}
9
10?>
11--EXPECTF--
12Fatal error: Class Bar cannot extend final class Foo in %s on line %d
13