mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

RFC: https://wiki.php.net/rfc/enumerations Co-authored-by: Nikita Popov <nikita.ppv@gmail.com> Closes GH-6489.
10 lines
212 B
PHP
10 lines
212 B
PHP
--TEST--
|
|
Enum cannot manually implement UnitEnum
|
|
--FILE--
|
|
<?php
|
|
|
|
enum Foo implements UnitEnum {}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Class Foo cannot implement previously implemented interface UnitEnum in %s on line %d
|