File tree Expand file tree Collapse file tree 3 files changed +23
-21
lines changed Expand file tree Collapse file tree 3 files changed +23
-21
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,17 @@ class NullableTypeDeclarationSniff implements Sniff
21
21
* @var array
22
22
*/
23
23
private $ validTokens = [
24
- T_STRING => true ,
25
- T_NS_SEPARATOR => true ,
26
- T_CALLABLE => true ,
27
- T_SELF => true ,
28
- T_PARENT => true ,
29
- T_STATIC => true ,
30
- T_NULL => true ,
31
- T_FALSE => true ,
32
- T_TRUE => true ,
24
+ T_STRING => true ,
25
+ T_NAME_QUALIFIED => true ,
26
+ T_NAME_FULLY_QUALIFIED => true ,
27
+ T_NAME_RELATIVE => true ,
28
+ T_CALLABLE => true ,
29
+ T_SELF => true ,
30
+ T_PARENT => true ,
31
+ T_STATIC => true ,
32
+ T_NULL => true ,
33
+ T_FALSE => true ,
34
+ T_TRUE => true ,
33
35
];
34
36
35
37
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ class MyClass {
8
8
{
9
9
}
10
10
11
- public function validWithFQN (
11
+ public function validWithQualifiedNames (
12
12
?\MyNameSpace \MyArray $ array = null ,
13
- ?\ MyNameSpace \MyObject $ object
14
- ): ?\ MyNameSpace \MyObject
13
+ ?MyNameSpace \MyObject $ object
14
+ ): ?namespace \MyObject
15
15
{
16
16
}
17
17
@@ -26,10 +26,10 @@ class MyClass {
26
26
{
27
27
}
28
28
29
- public function invalidWithFQNTooMuchWhitespace (
29
+ public function invalidWithQualifiedNamesTooMuchWhitespace (
30
30
? \MyNameSpace \MyArray $ array = null ,
31
- ? \ MyNameSpace \MyObject
32
- ):? \ MyNameSpace \MyObject
31
+ ? MyNameSpace \MyObject
32
+ ):? namespace \MyObject
33
33
{
34
34
}
35
35
}
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ class MyClass {
8
8
{
9
9
}
10
10
11
- public function validWithFQN (
11
+ public function validWithQualifiedNames (
12
12
?\MyNameSpace\MyArray $array = null,
13
- ?\ MyNameSpace\MyObject $object
14
- ): ?\MyNameSpace \MyObject
13
+ ?MyNameSpace\MyObject $object
14
+ ): ?namespace \MyObject
15
15
{
16
16
}
17
17
@@ -26,10 +26,10 @@ class MyClass {
26
26
{
27
27
}
28
28
29
- public function invalidWithFQNTooMuchWhitespace (
29
+ public function invalidWithQualifiedNamesTooMuchWhitespace (
30
30
?\MyNameSpace\MyArray $array = null,
31
- ?\ MyNameSpace\MyObject
32
- ):?\MyNameSpace \MyObject
31
+ ?MyNameSpace\MyObject
32
+ ):?namespace \MyObject
33
33
{
34
34
}
35
35
}
You can’t perform that action at this time.
0 commit comments