Skip to content
Open
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
1 change: 1 addition & 0 deletions language/predefined/attributes/allowdynamicproperties.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

<classsynopsis class="class">
<ooclass>
<modifier role="attribute">#[Attribute(Attribute::TARGET_CLASS)]</modifier>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gen_stub adds the trailing backslash:

Suggested change
<modifier role="attribute">#[Attribute(Attribute::TARGET_CLASS)]</modifier>
<modifier role="attribute">#[\Attribute(Attribute::TARGET_CLASS)]</modifier>

Although unfortunately it doesn't (yet) handle parameters :/

<modifier>final</modifier>
<classname>AllowDynamicProperties</classname>
</ooclass>
Expand Down
1 change: 1 addition & 0 deletions language/predefined/attributes/attribute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

<classsynopsis class="class">
<ooclass>
<modifier role="attribute">#[Attribute(Attribute::TARGET_CLASS)]</modifier>
<modifier>final</modifier>
<classname>Attribute</classname>
</ooclass>
Expand Down
1 change: 1 addition & 0 deletions language/predefined/attributes/deprecated.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

<classsynopsis class="class">
<ooclass>
<modifier role="attribute">#[Attribute(Attribute::TARGET_METHOD|Attribute::TARGET_FUNCTION|Attribute::TARGET_CLASS_CONSTANT)]</modifier>
<modifier>final</modifier>
<classname>Deprecated</classname>
</ooclass>
Expand Down
1 change: 1 addition & 0 deletions language/predefined/attributes/override.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

<classsynopsis class="class">
<ooclass>
<modifier role="attribute">#[Attribute(Attribute::TARGET_METHOD)]</modifier>
<modifier>final</modifier>
<classname>Override</classname>
</ooclass>
Expand Down
1 change: 1 addition & 0 deletions language/predefined/attributes/returntypewillchange.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

<classsynopsis class="class">
<ooclass>
<modifier role="attribute">#[Attribute(Attribute::TARGET_METHOD)]</modifier>
<modifier>final</modifier>
<classname>ReturnTypeWillChange</classname>
</ooclass>
Expand Down
1 change: 1 addition & 0 deletions language/predefined/attributes/sensitiveparameter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

<classsynopsis class="class">
<ooclass>
<modifier role="attribute">#[Attribute(Attribute::TARGET_PARAMETER)]</modifier>
<modifier>final</modifier>
<classname>SensitiveParameter</classname>
</ooclass>
Expand Down
1 change: 1 addition & 0 deletions language/predefined/stdclass.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

<classsynopsis class="class">
<ooclass>
<modifier role="attribute">#[AllowDynamicProperties]</modifier>
<classname>stdClass</classname>
</ooclass>
</classsynopsis>
Expand Down