@@ -22,10 +22,26 @@ index 3bed058..94d3a48 100644
22
22
- public $forbiddenCommentPatterns = [];
23
23
+ public array $forbiddenCommentPatterns = [];
24
24
25
+ /**
26
+ * @return array<int, (int|string)>
27
+ diff --git a/src/Unleashed/Sniffs/Commenting/InheritDocFormatSniff.php b/src/Unleashed/Sniffs/Commenting/InheritDocFormatSniff.php
28
+ index 9f7d180..f77cf2e 100644
29
+ --- a/src/Unleashed/Sniffs/Commenting/InheritDocFormatSniff.php
30
+ +++ b/src/Unleashed/Sniffs/Commenting/InheritDocFormatSniff.php
31
+ @@ -13,10 +13,8 @@ final class InheritDocFormatSniff implements Sniff
32
+
33
+ /**
34
+ * The required style
35
+ - *
36
+ - * @var string
37
+ */
38
+ - public $style = '{@inheritDoc}';
39
+ + public string $style = '{@inheritDoc}';
40
+
25
41
/**
26
42
* @return array<int, (int|string)>
27
43
diff --git a/src/Unleashed/Sniffs/Namespaces/FullyQualifiedGlobalFunctionsSniff.php b/src/Unleashed/Sniffs/Namespaces/FullyQualifiedGlobalFunctionsSniff.php
28
- index 71be9a5..f9492c7 100644
44
+ index ef06dc6..3106f19 100644
29
45
--- a/src/Unleashed/Sniffs/Namespaces/FullyQualifiedGlobalFunctionsSniff.php
30
46
+++ b/src/Unleashed/Sniffs/Namespaces/FullyQualifiedGlobalFunctionsSniff.php
31
47
@@ -11,11 +11,10 @@ use Unleashed\Helpers\UseStatements;
@@ -43,7 +59,7 @@ index 71be9a5..f9492c7 100644
43
59
'array_key_exists' => true,
44
60
'array_slice' => true,
45
61
diff --git a/src/Unleashed/Sniffs/PHP/ForbiddenClassesSniff.php b/src/Unleashed/Sniffs/PHP/ForbiddenClassesSniff.php
46
- index 80a42a6..dd2fcb7 100644
62
+ index 674faad..943722a 100644
47
63
--- a/src/Unleashed/Sniffs/PHP/ForbiddenClassesSniff.php
48
64
+++ b/src/Unleashed/Sniffs/PHP/ForbiddenClassesSniff.php
49
65
@@ -19,7 +19,7 @@ final class ForbiddenClassesSniff implements Sniff
@@ -68,7 +84,7 @@ index 80a42a6..dd2fcb7 100644
68
84
/**
69
85
* Returns an array of tokens this test wants to listen for.
70
86
diff --git a/tests/expected_report.txt b/tests/expected_report.txt
71
- index 94f1b60..fa0a0f9 100644
87
+ index 5c9c68f..a17bed3 100644
72
88
--- a/tests/expected_report.txt
73
89
+++ b/tests/expected_report.txt
74
90
@@ -11,11 +11,11 @@ tests/input/concatenation_spacing.php 49 0
@@ -85,7 +101,7 @@ index 94f1b60..fa0a0f9 100644
85
101
tests/input/forbidden-comments.php 14 0
86
102
tests/input/forbidden-functions.php 13 0
87
103
tests/input/ForbiddenClasses.php 7 0
88
- @@ -41 ,16 +41 ,16 @@ tests/input/strict-functions.php 4 0
104
+ @@ -42 ,16 +42 ,16 @@ tests/input/strict-functions.php 4 0
89
105
tests/input/test-case.php 7 0
90
106
tests/input/trailing_comma_on_array.php 1 0
91
107
tests/input/traits-uses.php 12 0
@@ -97,11 +113,11 @@ index 94f1b60..fa0a0f9 100644
97
113
tests/input/useless-semicolon.php 2 0
98
114
tests/input/UselessConditions.php 23 0
99
115
----------------------------------------------------------------------
100
- - A TOTAL OF 417 ERRORS AND 8 WARNINGS WERE FOUND IN 44 FILES
101
- + A TOTAL OF 422 ERRORS AND 8 WARNINGS WERE FOUND IN 44 FILES
116
+ - A TOTAL OF 429 ERRORS AND 9 WARNINGS WERE FOUND IN 45 FILES
117
+ + A TOTAL OF 434 ERRORS AND 9 WARNINGS WERE FOUND IN 45 FILES
102
118
----------------------------------------------------------------------
103
- - PHPCBF CAN FIX 334 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
104
- + PHPCBF CAN FIX 339 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
119
+ - PHPCBF CAN FIX 337 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
120
+ + PHPCBF CAN FIX 342 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
105
121
----------------------------------------------------------------------
106
122
107
123
0 commit comments