xref: /PHP-8.2/Zend/tests/enum/no-cases.phpt (revision 269c8dac)
1--TEST--
2Enum no manual cases method
3--FILE--
4<?php
5
6enum Foo {
7    case Bar;
8
9    public static function cases(): array {
10        return [];
11    }
12}
13
14?>
15--EXPECTF--
16Fatal error: Cannot redeclare Foo::cases() in %s on line %d
17