---
title: "format/statements/explicit-indirect-variable"
pagination: false
---

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

<RuleId id="format/statements/explicit-indirect-variable" />

Not in any preset. Safe fix.

## What it does

Add curly braces to indirect variables to make them clear to understand.

## Configuration

```toml title="pun.toml"
[format.rules]
"statements/explicit-indirect-variable" = true
```

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

## Replaces

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

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