1--TEST--
2Enum cannot have forbidden methods, even via traits
3--FILE--
4<?php
5
6trait Rectangle {
7    public function __construct() {}
8}
9
10enum Suit {
11    use Rectangle;
12
13    case Hearts;
14    case Diamonds;
15    case Clubs;
16    case Spades;
17}
18
19?>
20--EXPECTF--
21Fatal error: Enum Suit cannot include magic method __construct in %s on line %d
22