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

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

Type debugging helpers (dumpType, assertType).

**[assert-type](/docs/rules/analyse/debug/assert-type)**

Reports each `assertType()`, `assertNativeType()`, `assertSuperType()` or `assertVariableCertainty()` call that does not hold. Ignore comments and baselines cannot suppress these diagnostics.

In the `analyse-basic` preset and every stricter one. Report only.

**[dump-native-type](/docs/rules/analyse/debug/dump-native-type)**

In the `analyse-basic` preset and every stricter one. Report only. **Planned: not in Pun yet.** Enabling it is a config error.

**[dump-phpdoc-type](/docs/rules/analyse/debug/dump-phpdoc-type)**

Reports each argument's inferred type as PHPDoc. Ignore comments and baselines cannot suppress these diagnostics.

In the `analyse-basic` preset and every stricter one. Report only.

**[dump-scope](/docs/rules/analyse/debug/dump-scope)**

In the `analyse-basic` preset and every stricter one. Report only. **Planned: not in Pun yet.** Enabling it is a config error.

**[dump-type](/docs/rules/analyse/debug/dump-type)**

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

In the `analyse-basic` preset and every stricter one. Report only.
