1--TEST--
2Enum value property has automatic type
3--FILE--
4<?php
5
6enum IntEnum: int {
7    case Foo = 0;
8}
9
10enum StringEnum: string {
11    case Foo = 'Foo';
12}
13
14echo (new ReflectionProperty(IntEnum::class, 'value'))->getType() . "\n";
15echo (new ReflectionProperty(StringEnum::class, 'value'))->getType() . "\n";
16
17?>
18--EXPECT--
19int
20string
21