Skip to content

Commit

Permalink
test: array_indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Jul 28, 2024
1 parent 309aa93 commit 87f41f7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Fixtures/Ruleset/relax_actual.php
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,15 @@ public function string_notation__single_quote()
$b = "sample with 'single-quotes'";
}

public function whitespace__array_indentation()
{
$foo = [
'bar' => [
'baz' => true,
],
];
}

public function whitespace__compact_nullable_type_declaration(? string $str): ? string
{
return 'foo';
Expand Down
9 changes: 9 additions & 0 deletions tests/Fixtures/Ruleset/relax_expected.php
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,15 @@ public function string_notation__single_quote()
$b = "sample with 'single-quotes'";
}

public function whitespace__array_indentation()
{
$foo = [
'bar' => [
'baz' => true,
],
];
}

public function whitespace__compact_nullable_type_declaration(?string $str): ?string
{
return 'foo';
Expand Down

0 comments on commit 87f41f7

Please sign in to comment.