Skip to content

Update magic constant IDs #3208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appendices/tokens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ defined('T_FN') || define('T_FN', 10001);
<row>
<entry><constant>T_TRAIT_C</constant></entry>
<entry>__TRAIT__</entry>
<entry><link linkend="constant.trait">__TRAIT__</link></entry>
<entry><constant>__TRAIT__</constant></entry>
</row>
<row>
<entry><constant>T_TRY</constant></entry>
Expand Down
16 changes: 8 additions & 8 deletions language/constants.xml
Original file line number Diff line number Diff line change
Expand Up @@ -270,20 +270,20 @@ echo ANIMALS[1]; // outputs "cat"
</row>
</thead>
<tbody>
<row xml:id="constant.line">
<row xml:id="constant.--line--">
<entry><constant>__LINE__</constant></entry>
<entry>
The current line number of the file.
</entry>
</row>
<row xml:id="constant.file">
<row xml:id="constant.--file--">
<entry><constant>__FILE__</constant></entry>
<entry>
The full path and filename of the file with symlinks resolved. If used inside an include,
the name of the included file is returned.
</entry>
</row>
<row xml:id="constant.dir">
<row xml:id="constant.--dir--">
<entry><constant>__DIR__</constant></entry>
<entry>
The directory of the file. If used inside an include,
Expand All @@ -292,13 +292,13 @@ echo ANIMALS[1]; // outputs "cat"
does not have a trailing slash unless it is the root directory.
</entry>
</row>
<row xml:id="constant.function">
<row xml:id="constant.--function--">
<entry><constant>__FUNCTION__</constant></entry>
<entry>
The function name, or <literal>{closure}</literal> for anonymous functions.
</entry>
</row>
<row xml:id="constant.class">
<row xml:id="constant.--class--">
<entry><constant>__CLASS__</constant></entry>
<entry>
The class name. The class name includes the namespace
Expand All @@ -308,20 +308,20 @@ echo ANIMALS[1]; // outputs "cat"
is used in.
</entry>
</row>
<row xml:id="constant.trait">
<row xml:id="constant.--trait--">
<entry><constant>__TRAIT__</constant></entry>
<entry>
The trait name. The trait name includes the namespace
it was declared in (e.g. <literal>Foo\Bar</literal>).
</entry>
</row>
<row xml:id="constant.method">
<row xml:id="constant.--method--">
<entry><constant>__METHOD__</constant></entry>
<entry>
The class method name.
</entry>
</row>
<row xml:id="constant.namespace">
<row xml:id="constant.--namespace--">
<entry><constant>__NAMESPACE__</constant></entry>
<entry>
The name of the current namespace.
Expand Down