mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
733023b2e3
Refer to interfaces/enums instead of classes in more places. Closes GH-7792 Closes GH-8187
15 lines
246 B
PHP
15 lines
246 B
PHP
--TEST--
|
|
GH-7792 (Refer to enum as enum instead of class)
|
|
--FILE--
|
|
<?php
|
|
|
|
interface A {
|
|
public function a(): void;
|
|
}
|
|
|
|
enum B implements A {}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Enum B must implement 1 abstract private method (A::a) in %s on line %d
|