1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00
Files
archived-php-src/Zend/tests/enum/extending-user-error.phpt
T
2024-10-18 22:22:54 +02:00

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