1--TEST--
2Enum var_dump reference
3--FILE--
4<?php
5
6enum Foo {
7    case Bar;
8    case Baz;
9}
10
11$arr = [Foo::Bar];
12$arr[1] = &$arr[0];
13var_dump($arr);
14
15?>
16--EXPECT--
17array(2) {
18  [0]=>
19  &enum(Foo::Bar)
20  [1]=>
21  &enum(Foo::Bar)
22}
23