Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Aug 27, 2024
1 parent cca7900 commit 5a5271c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
7 changes: 7 additions & 0 deletions tests/Fixtures/Ruleset/relax_actual.php
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,13 @@ public function control_structure__trailing_comma_in_multiline()
2
];

// array_destructuring
$a = [11, 2, 3];
[
$c,
$d
] = $a;

// arguments
foo(
1,
Expand Down
11 changes: 9 additions & 2 deletions tests/Fixtures/Ruleset/relax_expected.php
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,13 @@ public function control_structure__trailing_comma_in_multiline()
2,
];

// array_destructuring
$a = [11, 2, 3];
[
$c,
$d,
] = $a;

// arguments
foo(
1,
Expand All @@ -775,13 +782,13 @@ public function control_structure__trailing_comma_in_multiline()
// parameters
function foo_trailing_comma_in_multiline(
$x,
$y
$y,
) {}

// match
match (true) {
1 => '1',
2 => '2'
2 => '2',
};

// after_heredoc in array
Expand Down

0 comments on commit 5a5271c

Please sign in to comment.