Skip to content

Incorrect formatting in nested associative array with multiple functions #432

@DevMude

Description

@DevMude

Currently does this:

$array = [
  'foo' => [
    'bar' => [
      'baz' => multiple_functions(function ($x) {
        return $x;
      }, function ($y) {
  return $y;
})
    ]
  ]
];

should do this:

$array = [
  'foo' => [
    'bar' => [
      'baz' => multiple_functions(function ($x) {
        return $x;
      }, function ($y) {
        return $y;
      })
    ]
  ]
];

Here's a more realistic example:

$array = [
  'foo' => [
    'bar' => [
      'baz' => array_map(function ($x) {
        return $x;
      }, array_filter($some_list_of_things, function ($y) {
  return $y;
}))
    ]
  ]
];

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions