We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 269098e commit e39dae0Copy full SHA for e39dae0
src/Standards/PSR12/Docs/Files/ImportStatementStandard.xml
@@ -0,0 +1,35 @@
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 is fully qualified and 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
+ use \FirstTrait;
17
+ use SecondTrait;
18
+}
19
20
+ </code>
21
+ <code title="Invalid: Import statement begins with a leading backslash.">
22
23
24
25
+use <em>\</em>Vendor\Package\ClassA as A;
26
27
28
29
30
31
32
33
34
+ </code_comparison>
35
+</documentation>
0 commit comments