Skip to content

Commit 40f767d

Browse files
authored
Update attributes.xml Исправил опечатку
#1132
1 parent 87931ee commit 40f767d

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

language/attributes.xml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ $copyAction->fileName = "/tmp/foo.jpg";
9494
$copyAction->targetDirectory = "/home/user";
9595
9696
executeAction($copyAction);
97-
98-
?>
9997
]]>
10098
</programlisting>
10199
</example>
@@ -164,8 +162,6 @@ class Thing {}
164162
165163
#[MyAttribute(1234), MyAttribute(5678)]
166164
class AnotherThing {}
167-
168-
?>
169165
]]>
170166
</programlisting>
171167
</example>
@@ -263,8 +259,6 @@ function dumpMyAttributeData($reflection)
263259
}
264260
265261
dumpMyAttributeData(new ReflectionClass(Thing::class));
266-
267-
?>
268262
]]>
269263
</programlisting>
270264
</example>
@@ -292,8 +286,6 @@ use Attribute;
292286
293287
#[Attribute]
294288
class MyAttribute {}
295-
296-
?>
297289
]]>
298290
</programlisting>
299291
</example>
@@ -317,8 +309,6 @@ use Attribute;
317309
318310
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_FUNCTION)]
319311
class MyAttribute {}
320-
321-
?>
322312
]]>
323313
</programlisting>
324314

@@ -350,7 +340,7 @@ class MyAttribute {}
350340

351341
<example>
352342
<title>
353-
Пример с константой IS_REPEATABL, которая разрешит назначать атрибут многократно
343+
Пример с константой IS_REPEATABLE, которая разрешит назначать атрибут многократно
354344
</title>
355345

356346
<programlisting role="php">
@@ -362,9 +352,7 @@ namespace Example;
362352
use Attribute;
363353
364354
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_FUNCTION | Attribute::IS_REPEATABLE)]
365-
class MyAttribute
366-
{
367-
}
355+
class MyAttribute {}
368356
]]>
369357
</programlisting>
370358

0 commit comments

Comments
 (0)