---
title: "analyse/debug/dump-type"
pagination: false
---

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

<RuleId id="analyse/debug/dump-type" />

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

## What it does

Reports each argument's inferred type in PHPStan's precise notation. Ignore comments and baselines cannot suppress these diagnostics.

## Configuration

```toml title="pun.toml"
[analyse.rules]
"debug/dump-type" = "on"
```

Ignore comments and baselines cannot suppress it.

## Replaces

- [`DumpTypeRule`](https://phpstan.org/error-identifiers/phpstan.dumpType) (phpstan-classes)
- [`PsalmTrace`](https://mago.carthage.software/1.61.0/en/tools/analyzer/overview/) (mago-analyzer)
- [`TypeInspection`](https://mago.carthage.software/1.61.0/en/tools/analyzer/overview/) (mago-analyzer)
- [`phpstan.dumpType`](https://phpstan.org/error-identifiers/phpstan.dumpType) (phpstan)

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