@@ -22,10 +22,26 @@ index 3bed058..94d3a48 100644
2222- public $forbiddenCommentPatterns = [];
2323+ public array $forbiddenCommentPatterns = [];
2424
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+
2541 /**
2642 * @return array<int, (int|string)>
2743diff --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
2945--- a/src/Unleashed/Sniffs/Namespaces/FullyQualifiedGlobalFunctionsSniff.php
3046+++ b/src/Unleashed/Sniffs/Namespaces/FullyQualifiedGlobalFunctionsSniff.php
3147@@ -11,11 +11,10 @@ use Unleashed\Helpers\UseStatements;
@@ -43,7 +59,7 @@ index 71be9a5..f9492c7 100644
4359 'array_key_exists' => true,
4460 'array_slice' => true,
4561diff --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
4763--- a/src/Unleashed/Sniffs/PHP/ForbiddenClassesSniff.php
4864+++ b/src/Unleashed/Sniffs/PHP/ForbiddenClassesSniff.php
4965@@ -19,7 +19,7 @@ final class ForbiddenClassesSniff implements Sniff
@@ -68,7 +84,7 @@ index 80a42a6..dd2fcb7 100644
6884 /**
6985 * Returns an array of tokens this test wants to listen for.
7086diff --git a/tests/expected_report.txt b/tests/expected_report.txt
71- index 94f1b60..fa0a0f9 100644
87+ index 5c9c68f..a17bed3 100644
7288--- a/tests/expected_report.txt
7389+++ b/tests/expected_report.txt
7490@@ -11,11 +11,11 @@ tests/input/concatenation_spacing.php 49 0
@@ -85,7 +101,7 @@ index 94f1b60..fa0a0f9 100644
85101 tests/input/forbidden-comments.php 14 0
86102 tests/input/forbidden-functions.php 13 0
87103 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
89105 tests/input/test-case.php 7 0
90106 tests/input/trailing_comma_on_array.php 1 0
91107 tests/input/traits-uses.php 12 0
@@ -97,11 +113,11 @@ index 94f1b60..fa0a0f9 100644
97113 tests/input/useless-semicolon.php 2 0
98114 tests/input/UselessConditions.php 23 0
99115 ----------------------------------------------------------------------
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
102118 ----------------------------------------------------------------------
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
105121 ----------------------------------------------------------------------
106122
107123
0 commit comments