---
title: "analyse/undefined/compact-variable"
pagination: false
---

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

<RuleId id="analyse/undefined/compact-variable" />

In the [`analyse-basic`](/docs/rules/presets/analyse-basic) preset and every stricter one. Report only. **Planned: not in Pun yet.** Enabling it is a config error.

## Replaces

- [`CompactVariablesRule`](https://phpstan.org/error-identifiers/variable.undefined) (phpstan-classes)

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