mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
12 lines
186 B
PHP
12 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
|