xref: /PHP-8.3/Zend/tests/enum/backed-invalid.phpt (revision 269c8dac)
1--TEST--
2Invalid enum backing type
3--FILE--
4<?php
5
6enum Foo: Bar {}
7
8?>
9--EXPECTF--
10Fatal error: Enum backing type must be int or string, Bar given in %s on line %d
11