Skip to content

Commit 13ee209

Browse files
rodrigoprimojrfnl
authored andcommitted
Generic/RequireStrictTypes: add XML documentation
1 parent 1d256d1 commit 13ee209

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<documentation title="Require Strict Types">
2+
<standard>
3+
<![CDATA[
4+
The strict_types declaration must be present and enabled.
5+
]]>
6+
</standard>
7+
<code_comparison>
8+
<code title="Valid: strict_types declaration is present and enabled.">
9+
<![CDATA[
10+
<?php
11+
declare(<em>strict_types=1</em>);
12+
13+
<?php
14+
declare(ticks=1, <em>strict_types=1</em>);
15+
]]>
16+
</code>
17+
<code title="Invalid: Missing or disabled strict_types declaration.">
18+
<![CDATA[
19+
<?php
20+
declare(encoding='ISO-8859-1'<em></em>);
21+
22+
<?php
23+
declare(strict_types=<em>0</em>);
24+
]]>
25+
</code>
26+
</code_comparison>
27+
</documentation>

0 commit comments

Comments
 (0)