File tree Expand file tree Collapse file tree 1 file changed +28
-3
lines changed
src/Standards/Generic/Docs/PHP Expand file tree Collapse file tree 1 file changed +28
-3
lines changed Original file line number Diff line number Diff line change 11<documentation title =" Require Strict Types" >
22 <standard >
33 <![CDATA[
4- The strict_types declaration must be present and enabled .
4+ The strict_types declaration must be present.
55 ]]>
66 </standard >
77 <code_comparison >
8- <code title =" Valid: strict_types declaration is present and enabled ." >
8+ <code title =" Valid: strict_types declaration is present." >
99 <![CDATA[
1010<?php
1111declare(<em>strict_types=1</em>);
1212
1313<?php
1414declare(ticks=1, <em>strict_types=1</em>);
15+
16+ <?php
17+ declare(<em>strict_types=0</em>);
1518 ]]>
1619 </code >
17- <code title =" Invalid: Missing or disabled strict_types declaration." >
20+ <code title =" Invalid: Missing strict_types declaration." >
1821 <![CDATA[
1922<?php
2023declare(encoding='ISO-8859-1'<em></em>);
2124
25+ <?php
26+ declare(strict_types=<em>0</em>);
27+ ]]>
28+ </code >
29+ </code_comparison >
30+ <standard >
31+ <![CDATA[
32+ The strict_types declaration must be enabled.
33+ ]]>
34+ </standard >
35+ <code_comparison >
36+ <code title =" Valid: strict_types declaration is enabled." >
37+ <![CDATA[
38+ <?php
39+ declare(<em>strict_types=1</em>);
40+
41+ <?php
42+ declare(ticks=1, <em>strict_types=1</em>);
43+ ]]>
44+ </code >
45+ <code title =" Invalid: strict_types declaration is disabled." >
46+ <![CDATA[
2247<?php
2348declare(strict_types=<em>0</em>);
2449 ]]>
You can’t perform that action at this time.
0 commit comments