1--TEST--
2Enum in static var
3--FILE--
4<?php
5
6enum Foo {
7 case Bar;
8}
9
10function example() {
11 static $bar = Foo::Bar;
12 return $bar;
13}
14
15var_dump(example());
16var_dump(example());
17
18?>
19--EXPECT--
20enum(Foo::Bar)
21enum(Foo::Bar)
22