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