---
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 [`lint-recommended`](/docs/rules/presets/lint-recommended) preset and every stricter one. In Rector's [`rector/code-quality`](/docs/rules/sets/rector/code-quality), [`rector/php71`](/docs/rules/sets/rector/php71) sets. Safe fix. Depends on `[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)
