---
title: "lint/types/require-strict-param"
pagination: false
---

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

<RuleId id="lint/types/require-strict-param" />

In the [`coding-style`](/docs/rules/sets/coding-style) set. Safe fix where types prove it, unsafe otherwise. Intent: suspicious.

## What it does

Functions should be used with `$strict` param set to `true`.

## Configuration

```toml title="pun.toml"
[lint.rules]
"types/require-strict-param" = "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

- [`strict_param`](https://cs.symfony.com/doc/rules/strict/strict_param.html) (php-cs-fixer, risky)
- [`strict-behavior`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#strict-behavior) (mago-linter)

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