1--TEST--
2Enum case disallows dynamic properties
3--FILE--
4<?php
5
6enum Foo {
7 case Bar;
8}
9
10$bar = Foo::Bar;
11
12try {
13 $bar->baz = 'Baz';
14} catch (\Error $e) {
15 echo $e->getMessage();
16}
17
18?>
19--EXPECT--
20Cannot create dynamic property Foo::$baz
21