note 110486 added to language.operators.type
| From: | Anonymous | Date: | Sat, 27 Oct 2012 13:32:56 +0000 |
| Subject: | note 110486 added to language.operators.type | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-191560@lists.php.net to get a copy of this message | ||
How to check if a class use some traits?
There is no type hinting for traits and instance-of doesn't work on traits. So actually there
is no way to indicate a class use a trait or not and it's so bad.
----
Server IP: 69.147.83.199
Probable Submitter: 184.107.247.90
----
Manual Page -- http://www.php.net/manual/en/language.operators.type.php
Edit -- https://master.php.net/note/edit/110486
Del: integrated -- https://master.php.net/note/delete/110486/integrated
Del: useless -- https://master.php.net/note/delete/110486/useless
Del: bad code -- https://master.php.net/note/delete/110486/bad+code
Del: spam -- https://master.php.net/note/delete/110486/spam
Del: non-english -- https://master.php.net/note/delete/110486/non-english
Del: in docs -- https://master.php.net/note/delete/110486/in+docs
Del: other reasons-- https://master.php.net/note/delete/110486
Reject -- https://master.php.net/note/reject/110486
Search -- https://master.php.net/manage/user-notes.php