We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d256d1 commit 13ee209Copy full SHA for 13ee209
src/Standards/Generic/Docs/PHP/RequireStrictTypesStandard.xml
@@ -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
10
+<?php
11
+declare(<em>strict_types=1</em>);
12
+
13
14
+declare(ticks=1, <em>strict_types=1</em>);
15
16
+ </code>
17
+ <code title="Invalid: Missing or disabled strict_types declaration.">
18
19
20
+declare(encoding='ISO-8859-1'<em></em>);
21
22
23
+declare(strict_types=<em>0</em>);
24
25
26
+ </code_comparison>
27
+</documentation>
0 commit comments