---
title: "format/arrays/no-multiline-double-arrow"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

<RuleId id="format/arrays/no-multiline-double-arrow" />

In the [`format-laravel`](/docs/rules/presets/format-laravel) preset. Safe fix.

## What it does

Operator `=>` should not be surrounded by multi-line whitespaces.

## Configuration

```toml title="pun.toml"
[format.rules]
"arrays/no-multiline-double-arrow" = true
```

To skip it in some files, add a [`@pun-ignore-file`](/docs/configuration/ignore-comments) comment.

## Replaces

- [`no_multiline_whitespace_around_double_arrow`](https://cs.symfony.com/doc/rules/array_notation/no_multiline_whitespace_around_double_arrow.html) (php-cs-fixer)

[More format/arrays rules](/docs/rules/format/arrays) · [Edit this page](https://github.com/shipfastlabs/pun/edit/main/crates/pun-config/rules/mapping.toml)
