---
title: "lint/control-flow/prefer-combined-unset"
pagination: false
---

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

<RuleId id="lint/control-flow/prefer-combined-unset" />

In the [`code-quality`](/docs/rules/sets/code-quality) set. Safe fix.

## What it does

Calling `unset` on multiple items should be done in one call.

## Configuration

```toml title="pun.toml"
[lint.rules]
"control-flow/prefer-combined-unset" = "error"
```

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

## Replaces

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

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