Skip to content

Commit

Permalink
Adjust tests to new version
Browse files Browse the repository at this point in the history
  • Loading branch information
rdohms committed Oct 13, 2021
1 parent 2501df7 commit 32b4918
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
16 changes: 8 additions & 8 deletions tests/expected_report.txt
Expand Up @@ -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
----------------------------------------------------------------------


5 changes: 1 addition & 4 deletions tests/fixed/example-class.php
Expand Up @@ -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')
{
Expand Down

0 comments on commit 32b4918

Please sign in to comment.