blob: 8330f8de3d0246811cec5cfadf66669ff18f2b57 (
plain)
1
2
3
4
5
6
7
8
9
10
|
--TEST--
Backed enums type can't be union
--FILE--
<?php
enum Foo: int|string {}
?>
--EXPECTF--
Fatal error: Enum backing type must be int or string, string|int given in %s on line %d
|