mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
733023b2e3
Refer to interfaces/enums instead of classes in more places. Closes GH-7792 Closes GH-8187
19 lines
289 B
PHP
19 lines
289 B
PHP
--TEST--
|
|
GH-7792 (Refer to enum as enum instead of class)
|
|
--FILE--
|
|
<?php
|
|
|
|
interface A {
|
|
const FOO = 'foo';
|
|
}
|
|
|
|
interface B {
|
|
const FOO = 'foo';
|
|
}
|
|
|
|
enum Foo implements A, B {}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Enum Foo inherits both A::FOO and B::FOO, which is ambiguous in %s on line %d
|