We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6566e9 commit f0ead32Copy full SHA for f0ead32
src/Standards/PSR12/Docs/Files/ImportStatementStandard.xml
@@ -0,0 +1,33 @@
1
+<documentation title="Import Statement">
2
+ <standard>
3
+ <![CDATA[
4
+ Import use statements must not begin with a leading backslash.
5
+ ]]>
6
+ </standard>
7
+ <code_comparison>
8
+ <code title="Valid: Import statement doesn't begin with a leading backslash.">
9
10
+<?php
11
+
12
+use Vendor\Package\ClassA as A;
13
14
+class FooBar extends A
15
+{
16
+ // Class content.
17
+}
18
19
+ </code>
20
+ <code title="Invalid: Import statement begins with a leading backslash.">
21
22
23
24
+use <em>\</em>Vendor\Package\ClassA as A;
25
26
27
28
29
30
31
32
+ </code_comparison>
33
+</documentation>
0 commit comments