1--TEST--
2Enum traits no __construct
3--FILE--
4<?php
5
6trait Foo {
7    public function __construct() {
8        echo "Evil code\n";
9    }
10}
11
12enum Bar {
13    use Foo;
14    case Baz;
15}
16
17var_dump(Bar::Baz);
18
19?>
20--EXPECTF--
21Fatal error: Enum Bar cannot include magic method __construct in %s on line %d
22