---
title: "lint/functions/require-strict-function-call"
pagination: false
---

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

<RuleId id="lint/functions/require-strict-function-call" />

In the [`coding-style`](/docs/rules/sets/coding-style) set. Report only. Intent: suspicious. Upstream gates: `strictRules.strictFunctionCalls`.

## What it does

Requires the strict flag of `in_array()`, `array_search()`, `array_keys()` with a search value and `base64_decode()`.

## Configuration

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

- [`StrictFunctionCallsRule`](https://github.com/phpstan/phpstan-strict-rules#readme) (phpstan-classes)
- [`function.strict`](https://phpstan.org/error-identifiers/function.strict) (phpstan-strict-rules)

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