Doc #66047 [Opn->Csd]: Traits are also affected by Namespaces
| From: | krakjoe@php.net | Date: | Fri, 08 Nov 2013 07:42:29 +0000 |
| Subject: | Doc #66047 [Opn->Csd]: Traits are also affected by Namespaces | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-10589@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66047&edit=1
ID: 66047
Updated by: krakjoe@php.net
Reported by: bug dot php dot net at e-z dot name
Summary: Traits are also affected by Namespaces
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: krakjoe
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2013-11-08 07:42:24] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=332082
Log: #66047 update namespaces.definition for traits and clarity
------------------------------------------------------------------------
[2013-11-07 15:48:08] bug dot php dot net at e-z dot name
Description:
------------
in:
http://www.php.net/manual/en/language.namespaces.definition.php
It says: only four types of code are affected by namespaces: classes, interfaces, functions and
constants.
It needs to be updated because TRAITS are also affected by NAMESPACES.
Test script:
---------------
namespace FOO;
trait fooFoo {}
namespace BAR;
class baz
{
use fooFoo; // Fatal error: Trait 'BAR\fooFoo' not found in
}
Expected result:
----------------
only FIVE types of code are affected by namespaces: classes, interfaces, TRAITS functions and
constants.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66047&edit=1