1
+ diff --git a/src/Unleashed/Helpers/SniffLocalCache.php b/src/Unleashed/Helpers/SniffLocalCache.php
2
+ index ad0792f..a8eaab3 100644
3
+ --- a/src/Unleashed/Helpers/SniffLocalCache.php
4
+ +++ b/src/Unleashed/Helpers/SniffLocalCache.php
5
+ @@ -14,7 +14,7 @@ use PHP_CodeSniffer\Files\File;
6
+ final class SniffLocalCache
7
+ {
8
+ /** @var array<int, array<string, mixed>> */
9
+ - private static $cache = [];
10
+ + private static array $cache = [];
11
+
12
+ /**
13
+ * @return mixed
1
14
diff --git a/src/Unleashed/Sniffs/Namespaces/FullyQualifiedGlobalFunctionsSniff.php b/src/Unleashed/Sniffs/Namespaces/FullyQualifiedGlobalFunctionsSniff.php
2
- index fe018ad..4810bd0 100644
15
+ index 71be9a5..f9492c7 100644
3
16
--- a/src/Unleashed/Sniffs/Namespaces/FullyQualifiedGlobalFunctionsSniff.php
4
17
+++ b/src/Unleashed/Sniffs/Namespaces/FullyQualifiedGlobalFunctionsSniff.php
5
- @@ -11,11 +11,10 @@ use Unleashed\SniffHelper ;
18
+ @@ -11,11 +11,10 @@ use Unleashed\Helpers\UseStatements ;
6
19
7
20
final class FullyQualifiedGlobalFunctionsSniff implements Sniff
8
21
{
@@ -17,64 +30,35 @@ index fe018ad..4810bd0 100644
17
30
'array_key_exists' => true,
18
31
'array_slice' => true,
19
32
diff --git a/tests/expected_report.txt b/tests/expected_report.txt
20
- index 1ecfaaa..975b9ca 100644
33
+ index 0ab45ec..fc414f1 100644
21
34
--- a/tests/expected_report.txt
22
35
+++ b/tests/expected_report.txt
23
- @@ -11,40 +11,42 @@ tests/input/concatenation_spacing.php 49 0
24
- tests/input/constants-no-lsb.php 2 0
25
- tests/input/constants-var.php 4 0
26
- tests/input/ControlStructures.php 17 2
27
- - tests/input/doc-comment-spacing.php 14 0
28
- + tests/input/doc-comment-spacing.php 12 0
36
+ @@ -14,7 +14,7 @@ tests/input/ControlStructures.php 17 2
37
+ tests/input/doc-comment-spacing.php 12 0
29
38
tests/input/duplicate-assignment-variable.php 1 0
30
39
tests/input/EarlyReturn.php 6 0
31
40
- tests/input/example-class.php 38 0
32
41
+ tests/input/example-class.php 41 0
33
42
tests/input/forbidden-comments.php 14 0
34
43
tests/input/forbidden-functions.php 5 0
35
44
tests/input/fully-qualified-and-fallbacks.php 1 0
36
- + tests/input/fully-qualified-without-namespace.php 3 0
37
- tests/input/inline_type_hint_assertions.php 7 0
38
- - tests/input/LowCaseTypes.php 4 0
39
- - tests/input/namespaces-spacing.php 8 0
40
- - tests/input/NamingCamelCase.php 9 0
41
- + tests/input/LowCaseTypes.php 3 0
42
- + tests/input/namespaces-spacing.php 12 0
43
- + tests/input/NamingCamelCase.php 8 0
44
- tests/input/negation-operator.php 2 0
45
- tests/input/new_with_parentheses.php 18 0
46
- - tests/input/not_spacing.php 6 0
47
- + tests/input/not_spacing.php 8 0
48
- tests/input/null_coalesce_operator.php 3 0
49
- tests/input/optimized-functions.php 1 0
50
- - tests/input/return_type_on_closures.php 29 0
51
- - tests/input/return_type_on_methods.php 25 0
52
- + tests/input/return_type_on_closures.php 17 0
53
- + tests/input/return_type_on_methods.php 13 0
54
- tests/input/semicolon_spacing.php 3 0
55
- tests/input/single-line-array-spacing.php 5 0
56
- - tests/input/spread-operator.php 18 0
57
- + tests/input/spread-operator.php 10 0
58
- tests/input/static-closures.php 1 0
45
+ @@ -38,16 +38,16 @@ tests/input/strict-functions.php 4 0
59
46
tests/input/test-case.php 7 0
60
47
tests/input/trailing_comma_on_array.php 1 0
61
- - tests/input/traits-uses.php 14 0
62
- + tests/input/traits-uses.php 11 0
63
- tests/input/type-hints.php 6 0
64
- - tests/input/UnusedVariables.php 3 0
65
- - tests/input/use-ordering.php 6 0
66
- + tests/input/UnusedVariables.php 2 0
67
- + tests/input/use-function.php 2 0
68
- + tests/input/use-ordering.php 9 0
48
+ tests/input/traits-uses.php 11 0
49
+ - tests/input/type-hints.php 5 0
50
+ + tests/input/type-hints.php 6 0
51
+ tests/input/UnusedVariables.php 2 0
52
+ tests/input/use-function.php 2 0
53
+ tests/input/use-ordering.php 9 0
69
54
tests/input/useless-semicolon.php 2 0
70
- - tests/input/UselessConditions.php 26 0
71
- + tests/input/UselessConditions.php 23 0
55
+ tests/input/UselessConditions.php 23 0
72
56
----------------------------------------------------------------------
73
- - A TOTAL OF 388 ERRORS AND 2 WARNINGS WERE FOUND IN 38 FILES
74
- + A TOTAL OF 362 ERRORS AND 2 WARNINGS WERE FOUND IN 40 FILES
57
+ - A TOTAL OF 362 ERRORS AND 2 WARNINGS WERE FOUND IN 41 FILES
58
+ + A TOTAL OF 366 ERRORS AND 2 WARNINGS WERE FOUND IN 41 FILES
75
59
----------------------------------------------------------------------
76
- - PHPCBF CAN FIX 331 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
77
- + PHPCBF CAN FIX 305 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
60
+ - PHPCBF CAN FIX 303 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
61
+ + PHPCBF CAN FIX 307 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
78
62
----------------------------------------------------------------------
79
63
80
64
0 commit comments