Skip to content

Commit 51fa005

Browse files
committed
Sync stubs from gen_stub.php
1 parent 0de223b commit 51fa005

8 files changed

Lines changed: 8 additions & 18 deletions

File tree

language/predefined/attributes/allowdynamicproperties.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
<classsynopsis class="class">
2929
<ooclass>
30-
<modifier role="attribute">#[\Attribute]</modifier>
30+
<modifier role="attribute">#[\Attribute(\Attribute::TARGET_CLASS)]</modifier>
3131
<modifier>final</modifier>
3232
<classname>AllowDynamicProperties</classname>
3333
</ooclass>

language/predefined/attributes/attribute.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<classsynopsis class="class">
2525
<ooclass>
26-
<modifier role="attribute">#[\Attribute]</modifier>
26+
<modifier role="attribute">#[\Attribute(\Attribute::TARGET_CLASS)]</modifier>
2727
<modifier>final</modifier>
2828
<classname>Attribute</classname>
2929
</ooclass>

language/predefined/attributes/delayedtargetvalidation.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
<classsynopsis class="class">
3131
<ooclass>
32-
<modifier role="attribute">#[\Attribute]</modifier>
32+
<modifier role="attribute">#[\Attribute(\Attribute::TARGET_ALL)]</modifier>
3333
<modifier>final</modifier>
3434
<classname>DelayedTargetValidation</classname>
3535
</ooclass>

language/predefined/attributes/deprecated.xml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,7 @@
1818

1919
<classsynopsis class="class">
2020
<ooclass>
21-
<modifier role="attribute">
22-
#[Attribute(
23-
Attribute::TARGET_FUNCTION
24-
| Attribute::TARGET_METHOD
25-
| Attribute::TARGET_CLASS
26-
| Attribute::TARGET_CLASS_CONSTANT
27-
| Attribute::TARGET_PROPERTY
28-
| Attribute::TARGET_PARAMETER
29-
| Attribute::TARGET_CONSTANT
30-
)]
31-
</modifier>
21+
<modifier role="attribute">#[\Attribute(ZEND_ATTRIBUTE_TARGET_METHOD | ZEND_ATTRIBUTE_TARGET_FUNCTION | ZEND_ATTRIBUTE_TARGET_CLASS_CONST | ZEND_ATTRIBUTE_TARGET_CONST | ZEND_ATTRIBUTE_TARGET_CLASS)]</modifier>
3222
<modifier>final</modifier>
3323
<classname>Deprecated</classname>
3424
</ooclass>

language/predefined/attributes/nodiscard.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
<classsynopsis class="class">
5454
<ooclass>
55-
<modifier role="attribute">#[\Attribute]</modifier>
55+
<modifier role="attribute">#[\Attribute(ZEND_ATTRIBUTE_TARGET_METHOD | ZEND_ATTRIBUTE_TARGET_FUNCTION)]</modifier>
5656
<modifier>final</modifier>
5757
<classname>NoDiscard</classname>
5858
</ooclass>

language/predefined/attributes/override.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
<classsynopsis class="class">
3131
<ooclass>
32-
<modifier role="attribute">#[\Attribute]</modifier>
32+
<modifier role="attribute">#[\Attribute(ZEND_ATTRIBUTE_TARGET_METHOD | ZEND_ATTRIBUTE_TARGET_PROPERTY)]</modifier>
3333
<modifier>final</modifier>
3434
<classname>Override</classname>
3535
</ooclass>

language/predefined/attributes/returntypewillchange.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
<classsynopsis class="class">
3838
<ooclass>
39-
<modifier role="attribute">#[\Attribute]</modifier>
39+
<modifier role="attribute">#[\Attribute(\Attribute::TARGET_METHOD)]</modifier>
4040
<modifier>final</modifier>
4141
<classname>ReturnTypeWillChange</classname>
4242
</ooclass>

language/predefined/attributes/sensitiveparameter.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<classsynopsis class="class">
2121
<ooclass>
22-
<modifier role="attribute">#[\Attribute]</modifier>
22+
<modifier role="attribute">#[\Attribute(\Attribute::TARGET_PARAMETER)]</modifier>
2323
<modifier>final</modifier>
2424
<classname>SensitiveParameter</classname>
2525
</ooclass>

0 commit comments

Comments
 (0)