[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] [doc-en] master: Changed fn function name in name resolution rules (#2888)
From: Valentin Udaltsov via GitHub <noreply () php ! net>
Date: 2023-10-28 8:44:24
Message-ID: LN9Qa40A87jUxnSh58L2O2IA2RrhM9wH3gEMdEq6M () main ! php ! net
[Download RAW message or body]
Author: Valentin Udaltsov (vudaltsov)
Committer: GitHub (web-flow)
Pusher: TimWolla
Date: 2023-10-28T10:30:50+02:00
Commit: https://github.com/php/doc-en/commit/a5ddf6c612685c2c0e5c3b3a7e8b719ced0a929b
Raw diff: https://github.com/php/doc-en/commit/a5ddf6c612685c2c0e5c3b3a7e8b719ced0a929b.diff
Changed fn function name in name resolution rules (#2888)
Changed paths:
M language/namespaces.xml
Diff:
diff --git a/language/namespaces.xml b/language/namespaces.xml
index 657d3d0b407..f6dea6d004e 100644
--- a/language/namespaces.xml
+++ b/language/namespaces.xml
@@ -945,8 +945,8 @@ if (is_array('hi')) { // prints "is not array"
class/namespace import table, function names according to the function import table and
constants according to the constant import table. For example, after
<literal>use A\B\C;</literal> a usage such as <literal>new C()</literal> resolves to the name
- <literal>A\B\C()</literal>. Similarly, after <literal>use function A\B\fn;</literal> a usage
- such as <literal>fn()</literal> resolves to the name <literal>A\B\fn</literal>.
+ <literal>A\B\C()</literal>. Similarly, after <literal>use function A\B\foo;</literal> a usage
+ such as <literal>foo()</literal> resolves to the name <literal>A\B\foo</literal>.
</simpara>
</listitem>
<listitem>
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic