xref: /PHP-8.2/Zend/tests/enum/no-properties.phpt (revision 9b984f52)
1--TEST--
2Enum disallows properties
3--FILE--
4<?php
5
6enum Foo {
7    public $bar;
8}
9
10?>
11--EXPECTF--
12Fatal error: Enum Foo cannot include properties in %s on line %d
13