note 118718 added to language.oop5.traits
| From: | balbuf | Date: | Mon, 25 Jan 2016 03:50:22 +0000 |
| Subject: | note 118718 added to language.oop5.traits | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204759@lists.php.net to get a copy of this message | ||
(It's already been said, but for the sake of searching on the word "relative"...)
The "use" keyword to import a trait into a class will resolve relative to the current
namespace and therefore should include a leading slash to represent a full path, whereas
"use" at the namespace level is always absolute.
----
Server IP: 72.52.91.14
Probable Submitter: 72.195.139.26
----
Manual Page -- http://php.net/manual/en/language.oop5.traits.php
Edit -- https://master.php.net/note/edit/118718
Del: integrated -- https://master.php.net/note/delete/118718/integrated
Del: useless -- https://master.php.net/note/delete/118718/useless
Del: bad code -- https://master.php.net/note/delete/118718/bad+code
Del: spam -- https://master.php.net/note/delete/118718/spam
Del: non-english -- https://master.php.net/note/delete/118718/non-english
Del: in docs -- https://master.php.net/note/delete/118718/in+docs
Del: other reasons-- https://master.php.net/note/delete/118718
Reject -- https://master.php.net/note/reject/118718
Search -- https://master.php.net/manage/user-notes.php