diff --git a/composer.json b/composer.json
index db15e75a..dfcf7c17 100644
--- a/composer.json
+++ b/composer.json
@@ -23,7 +23,7 @@
"require": {
"php": "^7.2 || ^8.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7",
- "slevomat/coding-standard": "^8.5.1",
+ "slevomat/coding-standard": "^8.6",
"squizlabs/php_codesniffer": "^3.7"
},
"config": {
diff --git a/lib/Doctrine/ruleset.xml b/lib/Doctrine/ruleset.xml
index 05a0d89c..2c5a109e 100644
--- a/lib/Doctrine/ruleset.xml
+++ b/lib/Doctrine/ruleset.xml
@@ -110,6 +110,14 @@
error
+
+
+
+
+
+
+
+
diff --git a/tests/expected_report.txt b/tests/expected_report.txt
index de60dbe3..9e34caa5 100644
--- a/tests/expected_report.txt
+++ b/tests/expected_report.txt
@@ -6,6 +6,7 @@ FILE ERRORS WARNINGS
tests/input/array_indentation.php 10 0
tests/input/arrow-functions-format.php 10 0
tests/input/assignment-operators.php 4 0
+tests/input/attributes.php 15 0
tests/input/binary_operators.php 9 0
tests/input/class-references.php 10 0
tests/input/ClassPropertySpacing.php 2 0
@@ -51,9 +52,9 @@ tests/input/use-ordering.php 1 0
tests/input/useless-semicolon.php 2 0
tests/input/UselessConditions.php 21 0
----------------------------------------------------------------------
-A TOTAL OF 437 ERRORS AND 0 WARNINGS WERE FOUND IN 47 FILES
+A TOTAL OF 452 ERRORS AND 0 WARNINGS WERE FOUND IN 48 FILES
----------------------------------------------------------------------
-PHPCBF CAN FIX 370 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
+PHPCBF CAN FIX 374 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
diff --git a/tests/fixed/attributes.php b/tests/fixed/attributes.php
new file mode 100644
index 00000000..2fcb6cc9
--- /dev/null
+++ b/tests/fixed/attributes.php
@@ -0,0 +1,32 @@
+ new stdClass();
+@@ -18,10 +18,10 @@
$multiLineArrowFunctions = Collection::from([1, 2])
->map(
@@ -244,7 +244,7 @@ index 4988dab..2df56a0 100644
$this->baxBax = $baxBax;
parent::__construct();
-@@ -41,7 +54,7 @@ class Example extends ParentClass implements IteratorAggregate
+@@ -41,7 +54,7 @@ public function __construct(private int|null $foo = null, private array $bar = [
/**
* Description
*/
@@ -257,7 +257,7 @@ diff --git a/tests/fixed/namespaces-spacing.php b/tests/fixed/namespaces-spacing
index 36cbae2..d42bbfe 100644
--- a/tests/fixed/namespaces-spacing.php
+++ b/tests/fixed/namespaces-spacing.php
-@@ -16,5 +16,5 @@ use const DATE_RFC3339;
+@@ -16,5 +16,5 @@
strrev(
(new DateTimeImmutable('@' . time(), new DateTimeZone('UTC')))
->sub(new DateInterval('P1D'))
@@ -268,7 +268,7 @@ diff --git a/tests/fixed/new_with_parentheses.php b/tests/fixed/new_with_parenth
index 47a06ec..6e81bbe 100644
--- a/tests/fixed/new_with_parentheses.php
+++ b/tests/fixed/new_with_parentheses.php
-@@ -24,5 +24,5 @@ $y = [new stdClass()];
+@@ -24,5 +24,5 @@
$z = new stdClass() ? new stdClass() : new stdClass();
@@ -302,7 +302,7 @@ diff --git a/tests/fixed/null_coalesce_operator.php b/tests/fixed/null_coalesce_
index 51c361c..8846dd1 100644
--- a/tests/fixed/null_coalesce_operator.php
+++ b/tests/fixed/null_coalesce_operator.php
-@@ -4,7 +4,7 @@ declare(strict_types=1);
+@@ -4,7 +4,7 @@
$foo = $_GET['foo'] ?? 'foo';
@@ -373,7 +373,7 @@ diff --git a/tests/fixed/return_type_on_methods.php b/tests/fixed/return_type_on
index 0c897ae..8e2c6f7 100644
--- a/tests/fixed/return_type_on_methods.php
+++ b/tests/fixed/return_type_on_methods.php
-@@ -31,7 +31,7 @@ class Test
+@@ -31,7 +31,7 @@ public function f(
int $c,
int $d,
int $e,
@@ -382,7 +382,7 @@ index 0c897ae..8e2c6f7 100644
): void {
}
-@@ -40,7 +40,7 @@ class Test
+@@ -40,7 +40,7 @@ public function g(
int $c,
int $d,
int $e,
@@ -391,7 +391,7 @@ index 0c897ae..8e2c6f7 100644
): void {
}
-@@ -49,7 +49,7 @@ class Test
+@@ -49,7 +49,7 @@ public function h(
int $c,
int $d,
int $e,
@@ -400,7 +400,7 @@ index 0c897ae..8e2c6f7 100644
): void {
}
-@@ -58,7 +58,7 @@ class Test
+@@ -58,7 +58,7 @@ public function i(
int $c,
int $d,
int $e,
@@ -409,7 +409,7 @@ index 0c897ae..8e2c6f7 100644
): void {
}
-@@ -67,7 +67,7 @@ class Test
+@@ -67,7 +67,7 @@ public function j(
int $c,
int $d,
int $e,
@@ -422,7 +422,7 @@ diff --git a/tests/fixed/type-hints.php b/tests/fixed/type-hints.php
index 5e26ed8..10e6f34 100644
--- a/tests/fixed/type-hints.php
+++ b/tests/fixed/type-hints.php
-@@ -10,7 +10,7 @@ use Traversable;
+@@ -10,7 +10,7 @@
class TraversableTypeHints
{
/** @var Traversable */
@@ -431,7 +431,7 @@ index 5e26ed8..10e6f34 100644
/**
* @param Iterator $iterator
-@@ -25,5 +25,6 @@ class TraversableTypeHints
+@@ -25,5 +25,6 @@ public function get(Iterator $iterator): Traversable
class UnionTypeHints
{
@@ -443,7 +443,7 @@ diff --git a/tests/input/ControlStructures.php b/tests/input/ControlStructures.p
index 73944e3..a0e0b2e 100644
--- a/tests/input/ControlStructures.php
+++ b/tests/input/ControlStructures.php
-@@ -93,7 +93,7 @@ class ControlStructures
+@@ -93,7 +93,7 @@ public function spaceBelowBlocks(): void
}
try {
echo 4;
@@ -498,7 +498,7 @@ diff --git a/tests/input/TrailingCommaOnFunctions.php b/tests/input/TrailingComm
index fc5480e..f3ffa91 100644
--- a/tests/input/TrailingCommaOnFunctions.php
+++ b/tests/input/TrailingCommaOnFunctions.php
-@@ -10,7 +10,7 @@ use function var_dump;
+@@ -10,7 +10,7 @@
class TrailingCommaOnFunctions
{
@@ -507,7 +507,7 @@ index fc5480e..f3ffa91 100644
{
}
-@@ -23,7 +23,7 @@ class TrailingCommaOnFunctions
+@@ -23,7 +23,7 @@ public function uses(): void
{
$var = null;
@@ -516,7 +516,7 @@ index fc5480e..f3ffa91 100644
var_dump($var);
};
-@@ -37,8 +37,7 @@ class TrailingCommaOnFunctions
+@@ -37,8 +37,7 @@ public function uses(): void
$class = new TrailingCommaOnFunctions();
@@ -530,7 +530,7 @@ diff --git a/tests/input/arrow-functions-format.php b/tests/input/arrow-function
index d3903ff..8a358e8 100644
--- a/tests/input/arrow-functions-format.php
+++ b/tests/input/arrow-functions-format.php
-@@ -18,10 +18,10 @@ $returningObject = static fn () => new stdClass();
+@@ -18,10 +18,10 @@
$multiLineArrowFunctions = Collection::from([1, 2])
->map(
@@ -547,7 +547,7 @@ diff --git a/tests/input/namespaces-spacing.php b/tests/input/namespaces-spacing
index e7be018..e1ab639 100644
--- a/tests/input/namespaces-spacing.php
+++ b/tests/input/namespaces-spacing.php
-@@ -11,5 +11,5 @@ use const DATE_RFC3339;
+@@ -11,5 +11,5 @@
strrev(
(new DateTimeImmutable('@' . time(), new DateTimeZone('UTC')))
->sub(new DateInterval('P1D'))
diff --git a/tests/php73-compatibility.patch b/tests/php73-compatibility.patch
index 6b28d34e..72501c26 100644
--- a/tests/php73-compatibility.patch
+++ b/tests/php73-compatibility.patch
@@ -1,8 +1,8 @@
diff --git a/tests/expected_report.txt b/tests/expected_report.txt
-index 151bce4..94718eb 100644
+index 9e34caa..9a78bc1 100644
--- a/tests/expected_report.txt
+++ b/tests/expected_report.txt
-@@ -14,26 +14,23 @@ tests/input/constants-var.php 7 0
+@@ -16,26 +16,23 @@ tests/input/constants-var.php 7 0
tests/input/ControlStructures.php 28 0
tests/input/doc-comment-spacing.php 11 0
tests/input/duplicate-assignment-variable.php 1 0
@@ -37,7 +37,7 @@ index 151bce4..94718eb 100644
tests/input/semicolon_spacing.php 3 0
tests/input/single-line-array-spacing.php 5 0
tests/input/spread-operator.php 6 0
-@@ -42,17 +39,17 @@ tests/input/strings.php 1 0
+@@ -44,17 +41,17 @@ tests/input/strings.php 1 0
tests/input/superfluous-naming.php 11 0
tests/input/test-case.php 8 0
tests/input/trailing_comma_on_array.php 1 0
@@ -52,11 +52,11 @@ index 151bce4..94718eb 100644
-tests/input/UselessConditions.php 21 0
+tests/input/UselessConditions.php 20 0
----------------------------------------------------------------------
--A TOTAL OF 437 ERRORS AND 0 WARNINGS WERE FOUND IN 47 FILES
-+A TOTAL OF 392 ERRORS AND 0 WARNINGS WERE FOUND IN 44 FILES
+-A TOTAL OF 452 ERRORS AND 0 WARNINGS WERE FOUND IN 48 FILES
++A TOTAL OF 407 ERRORS AND 0 WARNINGS WERE FOUND IN 45 FILES
----------------------------------------------------------------------
--PHPCBF CAN FIX 370 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
-+PHPCBF CAN FIX 325 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
+-PHPCBF CAN FIX 374 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
++PHPCBF CAN FIX 329 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
@@ -64,7 +64,7 @@ diff --git a/tests/fixed/ControlStructures.php b/tests/fixed/ControlStructures.p
index f8f7f65..a653086 100644
--- a/tests/fixed/ControlStructures.php
+++ b/tests/fixed/ControlStructures.php
-@@ -104,7 +104,7 @@ class ControlStructures
+@@ -104,7 +104,7 @@ public function spaceBelowBlocks(): void
try {
echo 4;
@@ -77,7 +77,7 @@ diff --git a/tests/fixed/EarlyReturn.php b/tests/fixed/EarlyReturn.php
index fc734db..caf1dbb 100644
--- a/tests/fixed/EarlyReturn.php
+++ b/tests/fixed/EarlyReturn.php
-@@ -11,7 +11,7 @@ class EarlyReturn
+@@ -11,7 +11,7 @@ public function bar(): bool
return $bar === 'bar';
}
@@ -118,7 +118,7 @@ diff --git a/tests/fixed/NamingCamelCase.php b/tests/fixed/NamingCamelCase.php
index 5493471..57d9f2b 100644
--- a/tests/fixed/NamingCamelCase.php
+++ b/tests/fixed/NamingCamelCase.php
-@@ -6,11 +6,14 @@ namespace Example;
+@@ -6,11 +6,14 @@
class NamingCamelCase
{
@@ -156,7 +156,7 @@ diff --git a/tests/fixed/TrailingCommaOnFunctions.php b/tests/fixed/TrailingComm
index 4248238..67173b3 100644
--- a/tests/fixed/TrailingCommaOnFunctions.php
+++ b/tests/fixed/TrailingCommaOnFunctions.php
-@@ -15,7 +15,7 @@ class TrailingCommaOnFunctions
+@@ -15,7 +15,7 @@ public function a(int $arg): void
}
public function b(
@@ -165,7 +165,7 @@ index 4248238..67173b3 100644
): void {
}
-@@ -28,7 +28,7 @@ class TrailingCommaOnFunctions
+@@ -28,7 +28,7 @@ public function uses(): void
};
$multiLine = static function (int $arg) use (
@@ -178,7 +178,7 @@ diff --git a/tests/fixed/UselessConditions.php b/tests/fixed/UselessConditions.p
index 71e0cfb..2151b17 100644
--- a/tests/fixed/UselessConditions.php
+++ b/tests/fixed/UselessConditions.php
-@@ -95,7 +95,7 @@ class UselessConditions
+@@ -95,7 +95,7 @@ public function necessaryIfConditionWithMethodCall(): bool
return false;
}
@@ -217,7 +217,7 @@ index 4988dab..2df56a0 100644
$this->baxBax = $baxBax;
parent::__construct();
-@@ -41,7 +54,7 @@ class Example extends ParentClass implements IteratorAggregate
+@@ -41,7 +54,7 @@ public function __construct(private int|null $foo = null, private array $bar = [
/**
* Description
*/
@@ -230,7 +230,7 @@ diff --git a/tests/fixed/new_with_parentheses.php b/tests/fixed/new_with_parenth
index 47a06ec..6e81bbe 100644
--- a/tests/fixed/new_with_parentheses.php
+++ b/tests/fixed/new_with_parentheses.php
-@@ -24,5 +24,5 @@ $y = [new stdClass()];
+@@ -24,5 +24,5 @@
$z = new stdClass() ? new stdClass() : new stdClass();
@@ -264,7 +264,7 @@ diff --git a/tests/fixed/null_coalesce_operator.php b/tests/fixed/null_coalesce_
index 51c361c..8846dd1 100644
--- a/tests/fixed/null_coalesce_operator.php
+++ b/tests/fixed/null_coalesce_operator.php
-@@ -4,7 +4,7 @@ declare(strict_types=1);
+@@ -4,7 +4,7 @@
$foo = $_GET['foo'] ?? 'foo';
@@ -335,7 +335,7 @@ diff --git a/tests/fixed/return_type_on_methods.php b/tests/fixed/return_type_on
index 0c897ae..8e2c6f7 100644
--- a/tests/fixed/return_type_on_methods.php
+++ b/tests/fixed/return_type_on_methods.php
-@@ -31,7 +31,7 @@ class Test
+@@ -31,7 +31,7 @@ public function f(
int $c,
int $d,
int $e,
@@ -344,7 +344,7 @@ index 0c897ae..8e2c6f7 100644
): void {
}
-@@ -40,7 +40,7 @@ class Test
+@@ -40,7 +40,7 @@ public function g(
int $c,
int $d,
int $e,
@@ -353,7 +353,7 @@ index 0c897ae..8e2c6f7 100644
): void {
}
-@@ -49,7 +49,7 @@ class Test
+@@ -49,7 +49,7 @@ public function h(
int $c,
int $d,
int $e,
@@ -362,7 +362,7 @@ index 0c897ae..8e2c6f7 100644
): void {
}
-@@ -58,7 +58,7 @@ class Test
+@@ -58,7 +58,7 @@ public function i(
int $c,
int $d,
int $e,
@@ -371,7 +371,7 @@ index 0c897ae..8e2c6f7 100644
): void {
}
-@@ -67,7 +67,7 @@ class Test
+@@ -67,7 +67,7 @@ public function j(
int $c,
int $d,
int $e,
@@ -384,7 +384,7 @@ diff --git a/tests/fixed/type-hints.php b/tests/fixed/type-hints.php
index 5e26ed8..10e6f34 100644
--- a/tests/fixed/type-hints.php
+++ b/tests/fixed/type-hints.php
-@@ -10,7 +10,7 @@ use Traversable;
+@@ -10,7 +10,7 @@
class TraversableTypeHints
{
/** @var Traversable */
@@ -393,7 +393,7 @@ index 5e26ed8..10e6f34 100644
/**
* @param Iterator $iterator
-@@ -25,5 +25,6 @@ class TraversableTypeHints
+@@ -25,5 +25,6 @@ public function get(Iterator $iterator): Traversable
class UnionTypeHints
{
@@ -405,7 +405,7 @@ diff --git a/tests/input/ControlStructures.php b/tests/input/ControlStructures.p
index 73944e3..a0e0b2e 100644
--- a/tests/input/ControlStructures.php
+++ b/tests/input/ControlStructures.php
-@@ -93,7 +93,7 @@ class ControlStructures
+@@ -93,7 +93,7 @@ public function spaceBelowBlocks(): void
}
try {
echo 4;
@@ -460,7 +460,7 @@ diff --git a/tests/input/TrailingCommaOnFunctions.php b/tests/input/TrailingComm
index fc5480e..8adcedf 100644
--- a/tests/input/TrailingCommaOnFunctions.php
+++ b/tests/input/TrailingCommaOnFunctions.php
-@@ -10,7 +10,7 @@ use function var_dump;
+@@ -10,7 +10,7 @@
class TrailingCommaOnFunctions
{
@@ -469,7 +469,7 @@ index fc5480e..8adcedf 100644
{
}
-@@ -23,7 +23,7 @@ class TrailingCommaOnFunctions
+@@ -23,7 +23,7 @@ public function uses(): void
{
$var = null;
diff --git a/tests/php74-compatibility.patch b/tests/php74-compatibility.patch
index be50dc5c..2dc95267 100644
--- a/tests/php74-compatibility.patch
+++ b/tests/php74-compatibility.patch
@@ -1,8 +1,8 @@
diff --git a/tests/expected_report.txt b/tests/expected_report.txt
-index 151bce4..08a098f 100644
+index 9e34caa..ed67841 100644
--- a/tests/expected_report.txt
+++ b/tests/expected_report.txt
-@@ -14,26 +14,23 @@ tests/input/constants-var.php 7 0
+@@ -16,26 +16,23 @@ tests/input/constants-var.php 7 0
tests/input/ControlStructures.php 28 0
tests/input/doc-comment-spacing.php 11 0
tests/input/duplicate-assignment-variable.php 1 0
@@ -35,7 +35,7 @@ index 151bce4..08a098f 100644
tests/input/semicolon_spacing.php 3 0
tests/input/single-line-array-spacing.php 5 0
tests/input/spread-operator.php 6 0
-@@ -42,17 +39,17 @@ tests/input/strings.php 1 0
+@@ -44,17 +41,17 @@ tests/input/strings.php 1 0
tests/input/superfluous-naming.php 11 0
tests/input/test-case.php 8 0
tests/input/trailing_comma_on_array.php 1 0
@@ -50,11 +50,11 @@ index 151bce4..08a098f 100644
-tests/input/UselessConditions.php 21 0
+tests/input/UselessConditions.php 20 0
----------------------------------------------------------------------
--A TOTAL OF 437 ERRORS AND 0 WARNINGS WERE FOUND IN 47 FILES
-+A TOTAL OF 401 ERRORS AND 0 WARNINGS WERE FOUND IN 44 FILES
+-A TOTAL OF 452 ERRORS AND 0 WARNINGS WERE FOUND IN 48 FILES
++A TOTAL OF 416 ERRORS AND 0 WARNINGS WERE FOUND IN 45 FILES
----------------------------------------------------------------------
--PHPCBF CAN FIX 370 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
-+PHPCBF CAN FIX 334 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
+-PHPCBF CAN FIX 374 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
++PHPCBF CAN FIX 338 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
@@ -62,7 +62,7 @@ diff --git a/tests/fixed/ControlStructures.php b/tests/fixed/ControlStructures.p
index f8f7f65..a653086 100644
--- a/tests/fixed/ControlStructures.php
+++ b/tests/fixed/ControlStructures.php
-@@ -104,7 +104,7 @@ class ControlStructures
+@@ -104,7 +104,7 @@ public function spaceBelowBlocks(): void
try {
echo 4;
@@ -75,7 +75,7 @@ diff --git a/tests/fixed/EarlyReturn.php b/tests/fixed/EarlyReturn.php
index fc734db..caf1dbb 100644
--- a/tests/fixed/EarlyReturn.php
+++ b/tests/fixed/EarlyReturn.php
-@@ -11,7 +11,7 @@ class EarlyReturn
+@@ -11,7 +11,7 @@ public function bar(): bool
return $bar === 'bar';
}
@@ -116,7 +116,7 @@ diff --git a/tests/fixed/NamingCamelCase.php b/tests/fixed/NamingCamelCase.php
index 5493471..57d9f2b 100644
--- a/tests/fixed/NamingCamelCase.php
+++ b/tests/fixed/NamingCamelCase.php
-@@ -6,11 +6,14 @@ namespace Example;
+@@ -6,11 +6,14 @@
class NamingCamelCase
{
@@ -154,7 +154,7 @@ diff --git a/tests/fixed/TrailingCommaOnFunctions.php b/tests/fixed/TrailingComm
index 4248238..67173b3 100644
--- a/tests/fixed/TrailingCommaOnFunctions.php
+++ b/tests/fixed/TrailingCommaOnFunctions.php
-@@ -15,7 +15,7 @@ class TrailingCommaOnFunctions
+@@ -15,7 +15,7 @@ public function a(int $arg): void
}
public function b(
@@ -163,7 +163,7 @@ index 4248238..67173b3 100644
): void {
}
-@@ -28,7 +28,7 @@ class TrailingCommaOnFunctions
+@@ -28,7 +28,7 @@ public function uses(): void
};
$multiLine = static function (int $arg) use (
@@ -176,7 +176,7 @@ diff --git a/tests/fixed/UselessConditions.php b/tests/fixed/UselessConditions.p
index 71e0cfb..2151b17 100644
--- a/tests/fixed/UselessConditions.php
+++ b/tests/fixed/UselessConditions.php
-@@ -95,7 +95,7 @@ class UselessConditions
+@@ -95,7 +95,7 @@ public function necessaryIfConditionWithMethodCall(): bool
return false;
}
@@ -213,7 +213,7 @@ index 4988dab..c31e53f 100644
$this->baxBax = $baxBax;
parent::__construct();
-@@ -41,7 +52,7 @@ class Example extends ParentClass implements IteratorAggregate
+@@ -41,7 +52,7 @@ public function __construct(private int|null $foo = null, private array $bar = [
/**
* Description
*/
@@ -284,7 +284,7 @@ diff --git a/tests/fixed/return_type_on_methods.php b/tests/fixed/return_type_on
index 0c897ae..8e2c6f7 100644
--- a/tests/fixed/return_type_on_methods.php
+++ b/tests/fixed/return_type_on_methods.php
-@@ -31,7 +31,7 @@ class Test
+@@ -31,7 +31,7 @@ public function f(
int $c,
int $d,
int $e,
@@ -293,7 +293,7 @@ index 0c897ae..8e2c6f7 100644
): void {
}
-@@ -40,7 +40,7 @@ class Test
+@@ -40,7 +40,7 @@ public function g(
int $c,
int $d,
int $e,
@@ -302,7 +302,7 @@ index 0c897ae..8e2c6f7 100644
): void {
}
-@@ -49,7 +49,7 @@ class Test
+@@ -49,7 +49,7 @@ public function h(
int $c,
int $d,
int $e,
@@ -311,7 +311,7 @@ index 0c897ae..8e2c6f7 100644
): void {
}
-@@ -58,7 +58,7 @@ class Test
+@@ -58,7 +58,7 @@ public function i(
int $c,
int $d,
int $e,
@@ -320,7 +320,7 @@ index 0c897ae..8e2c6f7 100644
): void {
}
-@@ -67,7 +67,7 @@ class Test
+@@ -67,7 +67,7 @@ public function j(
int $c,
int $d,
int $e,
@@ -333,7 +333,7 @@ diff --git a/tests/fixed/type-hints.php b/tests/fixed/type-hints.php
index 5e26ed8..bfa6d4f 100644
--- a/tests/fixed/type-hints.php
+++ b/tests/fixed/type-hints.php
-@@ -25,5 +25,6 @@ class TraversableTypeHints
+@@ -25,5 +25,6 @@ public function get(Iterator $iterator): Traversable
class UnionTypeHints
{
@@ -345,7 +345,7 @@ diff --git a/tests/input/ControlStructures.php b/tests/input/ControlStructures.p
index 73944e3..a0e0b2e 100644
--- a/tests/input/ControlStructures.php
+++ b/tests/input/ControlStructures.php
-@@ -93,7 +93,7 @@ class ControlStructures
+@@ -93,7 +93,7 @@ public function spaceBelowBlocks(): void
}
try {
echo 4;
@@ -400,7 +400,7 @@ diff --git a/tests/input/TrailingCommaOnFunctions.php b/tests/input/TrailingComm
index fc5480e..8adcedf 100644
--- a/tests/input/TrailingCommaOnFunctions.php
+++ b/tests/input/TrailingCommaOnFunctions.php
-@@ -10,7 +10,7 @@ use function var_dump;
+@@ -10,7 +10,7 @@
class TrailingCommaOnFunctions
{
@@ -409,7 +409,7 @@ index fc5480e..8adcedf 100644
{
}
-@@ -23,7 +23,7 @@ class TrailingCommaOnFunctions
+@@ -23,7 +23,7 @@ public function uses(): void
{
$var = null;
diff --git a/tests/php80-compatibility.patch b/tests/php80-compatibility.patch
index f47b0c7f..a5e229ee 100644
--- a/tests/php80-compatibility.patch
+++ b/tests/php80-compatibility.patch
@@ -1,8 +1,8 @@
diff --git a/tests/expected_report.txt b/tests/expected_report.txt
-index 151bce4..873691d 100644
+index 9e34caa..71022c4 100644
--- a/tests/expected_report.txt
+++ b/tests/expected_report.txt
-@@ -16,7 +16,6 @@ tests/input/doc-comment-spacing.php 11 0
+@@ -18,7 +18,6 @@ tests/input/doc-comment-spacing.php 11 0
tests/input/duplicate-assignment-variable.php 1 0
tests/input/EarlyReturn.php 7 0
tests/input/example-class.php 47 0
@@ -10,7 +10,7 @@ index 151bce4..873691d 100644
tests/input/Exceptions.php 1 0
tests/input/forbidden-comments.php 14 0
tests/input/forbidden-functions.php 6 0
-@@ -31,7 +30,7 @@ tests/input/null_coalesce_equal_operator.php 5 0
+@@ -33,7 +32,7 @@ tests/input/null_coalesce_equal_operator.php 5 0
tests/input/null_coalesce_operator.php 3 0
tests/input/null_safe_operator.php 1 0
tests/input/optimized-functions.php 1 0
@@ -19,15 +19,15 @@ index 151bce4..873691d 100644
tests/input/return_type_on_closures.php 26 0
tests/input/return_type_on_methods.php 22 0
tests/input/semicolon_spacing.php 3 0
-@@ -50,9 +49,9 @@ tests/input/use-ordering.php 1 0
+@@ -52,9 +51,9 @@ tests/input/use-ordering.php 1 0
tests/input/useless-semicolon.php 2 0
tests/input/UselessConditions.php 21 0
----------------------------------------------------------------------
--A TOTAL OF 437 ERRORS AND 0 WARNINGS WERE FOUND IN 47 FILES
-+A TOTAL OF 431 ERRORS AND 0 WARNINGS WERE FOUND IN 46 FILES
+-A TOTAL OF 452 ERRORS AND 0 WARNINGS WERE FOUND IN 48 FILES
++A TOTAL OF 446 ERRORS AND 0 WARNINGS WERE FOUND IN 47 FILES
----------------------------------------------------------------------
--PHPCBF CAN FIX 370 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
-+PHPCBF CAN FIX 364 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
+-PHPCBF CAN FIX 374 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
++PHPCBF CAN FIX 368 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------