@@ -99,7 +99,7 @@ index 80a42a6..dd2fcb7 100644
9999 /**
100100 * Returns an array of tokens this test wants to listen for.
101101diff --git a/tests/expected_report.txt b/tests/expected_report.txt
102- index 94f1b60..4c83934 100644
102+ index 94f1b60..340e8e5 100644
103103--- a/tests/expected_report.txt
104104+++ b/tests/expected_report.txt
105105@@ -10,12 +10,12 @@ tests/input/class-references.php 10 0
@@ -115,7 +115,7 @@ index 94f1b60..4c83934 100644
115115- tests/input/EarlyReturn.php 6 0
116116- tests/input/example-class.php 38 0
117117+ tests/input/EarlyReturn.php 7 0
118- + tests/input/example-class.php 47 0
118+ + tests/input/example-class.php 43 0
119119 tests/input/forbidden-comments.php 14 0
120120 tests/input/forbidden-functions.php 13 0
121121 tests/input/ForbiddenClasses.php 7 0
@@ -151,10 +151,10 @@ index 94f1b60..4c83934 100644
151151+ tests/input/UselessConditions.php 24 0
152152 ----------------------------------------------------------------------
153153- A TOTAL OF 417 ERRORS AND 8 WARNINGS WERE FOUND IN 44 FILES
154- + A TOTAL OF 444 ERRORS AND 8 WARNINGS WERE FOUND IN 44 FILES
154+ + A TOTAL OF 440 ERRORS AND 8 WARNINGS WERE FOUND IN 44 FILES
155155 ----------------------------------------------------------------------
156156- PHPCBF CAN FIX 334 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
157- + PHPCBF CAN FIX 361 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
157+ + PHPCBF CAN FIX 357 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
158158 ----------------------------------------------------------------------
159159
160160
@@ -233,42 +233,35 @@ index 2f53db0..728e7f0 100644
233233 /**
234234 * Description
235235diff --git a/tests/fixed/example-class.php b/tests/fixed/example-class.php
236- index 0f98ce6..6388c7c 100644
236+ index 0f98ce6..cc1f058 100644
237237--- a/tests/fixed/example-class.php
238238+++ b/tests/fixed/example-class.php
239- @@ -4,7 +4,6 @@ declare(strict_types=1);
240-
241- namespace Example;
242-
243- - use Doctrine\Sniffs\Spacing\ControlStructureSniff;
244- use Fancy\TestCase;
245-
246- use function strlen as stringLength;
247- @@ -18,30 +17,14 @@ class Example implements \IteratorAggregate
239+ @@ -18,19 +18,16 @@ class Example implements \IteratorAggregate
248240 {
249241 private const VERSION = \PHP_VERSION - (PHP_MINOR_VERSION * 100) - PHP_PATCH_VERSION;
250242
251243- /** @var int|null */
252244- private $foo;
253- -
254- - /** @var string[] */
245+ + private int|null $foo = null;
246+
247+ /** @var string[] */
255248- private $bar;
256- -
249+ + private array $bar;
250+
257251- /** @var bool */
258252- private $baz;
259- -
253+ + private bool $baz;
254+
260255- /** @var ControlStructureSniff|int|string|null */
261256- private $baxBax;
262- -
257+ + private ControlStructureSniff|int|string|null $baxBax = null;
258+
263259- public function __construct(?int $foo = null, array $bar = [], bool $baz = false, $baxBax = 'unused')
264- + public function __construct(private int|null $foo = null, private array $bar = [], private bool $baz = false, private $baxBax = 'unused')
260+ + public function __construct(int|null $foo = null, array $bar = [], bool $baz = false, $baxBax = 'unused')
265261 {
266- - $this->foo = $foo;
267- - $this->bar = $bar;
268- - $this->baz = $baz;
269- - $this->baxBax = $baxBax;
270- }
271-
262+ $this->foo = $foo;
263+ $this->bar = $bar;
264+ @@ -41,7 +38,7 @@ class Example implements \IteratorAggregate
272265 /**
273266 * Description
274267 */
0 commit comments