|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2019-10-19 19:37 UTC] villfa@php.net
[2019-10-20 19:50 UTC] villfa@php.net
-Assigned To:
+Assigned To: villfa
[2019-10-21 07:25 UTC] krakjoe@php.net
[2019-10-21 07:25 UTC] krakjoe@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 12:00:01 2025 UTC |
Description: ------------ When ReflectionClass::implementsInterface receives a trait as a parameter the message of the thrown exception says that the trait is a class. Test script: --------------- <?php trait T {} try { (new ReflectionClass(new stdClass))->implementsInterface(T::class); } catch (ReflectionException $e) { echo $e->getMessage(); } Expected result: ---------------- T is not an interface Actual result: -------------- Interface T is a Class