---
title: "analyse/undefined/include-file"
pagination: false
---

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

<RuleId id="analyse/undefined/include-file" />

In the [`analyse-basic`](/docs/rules/presets/analyse-basic) preset and every stricter one. Report only.

## Configuration

```toml title="pun.toml"
[analyse.rules]
"undefined/include-file" = "on"
```

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

## Replaces

- [`RequireFileExistsRule`](https://phpstan.org/error-identifiers/include.fileNotFound) (phpstan-classes)
- [`include.fileNotFound`](https://phpstan.org/error-identifiers/include.fileNotFound) (phpstan)
- [`includeOnce.fileNotFound`](https://phpstan.org/error-identifiers/includeOnce.fileNotFound) (phpstan)
- [`require.fileNotFound`](https://phpstan.org/error-identifiers/require.fileNotFound) (phpstan)
- [`requireOnce.fileNotFound`](https://phpstan.org/error-identifiers/requireOnce.fileNotFound) (phpstan)

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