diff --git a/tests/expected_report.txt b/tests/expected_report.txt index 8275878..e2c4715 100644 --- a/tests/expected_report.txt +++ b/tests/expected_report.txt @@ -3,16 +3,16 @@ PHP CODE SNIFFER REPORT SUMMARY ---------------------------------------------------------------------- FILE ERRORS WARNINGS ---------------------------------------------------------------------- -tests/input/concatenation_spacing.php 56 0 -tests/input/example-class.php 36 0 -tests/input/not_spacing.php 8 0 -tests/input/return_type_on_closures.php 28 0 -tests/input/return_type_on_methods.php 14 0 -tests/input/test-case.php 8 0 +tests/input/concatenation_spacing.php 55 0 +tests/input/example-class.php 35 0 +tests/input/not_spacing.php 7 0 +tests/input/return_type_on_closures.php 27 0 +tests/input/return_type_on_methods.php 13 0 +tests/input/test-case.php 7 0 ---------------------------------------------------------------------- -A TOTAL OF 150 ERRORS AND 0 WARNINGS WERE FOUND IN 6 FILES +A TOTAL OF 144 ERRORS AND 0 WARNINGS WERE FOUND IN 6 FILES ---------------------------------------------------------------------- -PHPCBF CAN FIX 139 OF THESE SNIFF VIOLATIONS AUTOMATICALLY +PHPCBF CAN FIX 133 OF THESE SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- diff --git a/tests/fixed/example-class.php b/tests/fixed/example-class.php index 7144072..6f32db4 100644 --- a/tests/fixed/example-class.php +++ b/tests/fixed/example-class.php @@ -33,10 +33,7 @@ class Example implements IteratorAggregate private bool $baz; - /** - * @var ControlStructureSniff|int|string|null - */ - private $baxBax; + private ControlStructureSniff|int|string|null $baxBax = null; public function __construct(?int $foo = null, array $bar = [], bool $baz = false, $baxBax = 'unused') {