mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
cb1d4ba97a
Closes GH-16491
13 lines
186 B
PHP
13 lines
186 B
PHP
--TEST--
|
|
GH-16315: Extending userland enum
|
|
--FILE--
|
|
<?php
|
|
|
|
enum MyEnum {}
|
|
|
|
class Demo extends MyEnum {}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Class Demo cannot extend enum MyEnum in %s on line 5
|