diff --git a/language/namespaces.xml b/language/namespaces.xml index fcbf3d13ac..3039247ba0 100644 --- a/language/namespaces.xml +++ b/language/namespaces.xml @@ -1156,7 +1156,7 @@ A\B::foo(); // calls method "foo" of class "B" from namespace "A\A" - Neither functions nor + Before PHP 5.6 neither functions nor constants can be imported via the use statement. @@ -1501,12 +1501,12 @@ namespace my\stuff\nested { - Neither functions nor constants can be imported via the <literal>use</literal> + <title>Before PHP 5.6 neither functions nor constants can be imported via the <literal>use</literal> statement. - The only elements that are affected by use statements are namespaces + Before PHP 5.6 the only elements that are affected by use statements are namespaces and class names. In order to shorten a long constant or function, import its containing - namespace + namespace. + As of PHP 5.6 aliasing or importing function and constant names is allowed.