15 lines
302 B
Plaintext
15 lines
302 B
Plaintext
|
|
--TEST--
|
||
|
|
Bug #78697: ReflectionClass::implementsInterface - inaccurate error message with traits
|
||
|
|
--FILE--
|
||
|
|
<?php
|
||
|
|
trait T {}
|
||
|
|
|
||
|
|
try {
|
||
|
|
(new ReflectionClass(new stdClass))->implementsInterface(T::class);
|
||
|
|
} catch (ReflectionException $e) {
|
||
|
|
echo $e->getMessage();
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
--EXPECT--
|
||
|
|
T is not an interface
|