---
title: "lint/functions/no-extra-arguments"
pagination: false
---

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

<RuleId id="lint/functions/no-extra-arguments" />

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

## What it does

Remove extra parameters

## Configuration

```toml title="pun.toml"
[lint.rules]
"functions/no-extra-arguments" = "error"
```

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

## Replaces

- [`RemoveExtraParameters`](https://getrector.com/rule-detail/remove-extra-parameters-rector) (rector)

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