xref: /PHP-8.2/Zend/tests/enum/__set_state.phpt (revision 9b984f52)
1--TEST--
2Enum __set_state
3--FILE--
4<?php
5
6enum Foo {
7    case Bar;
8
9    public static function __set_state(array $properties): object {
10
11    }
12}
13
14?>
15--EXPECTF--
16Fatal error: Enum Foo cannot include magic method __set_state in %s on line %d
17