---
title: "format/casing/native-types"
pagination: false
---

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

<RuleId id="format/casing/native-types" />

In the [`format-laravel`](/docs/rules/presets/format-laravel) preset. Safe fix.

## What it does

Native type declarations should be used in the correct case.

## Configuration

```toml title="pun.toml"
[format.rules]
"casing/native-types" = true
```

To skip it in some files, add a [`@pun-ignore-file`](/docs/configuration/ignore-comments) comment.

## Replaces

- [`native_type_declaration_casing`](https://cs.symfony.com/doc/rules/casing/native_type_declaration_casing.html) (php-cs-fixer)
- [`lowercase-type-hint`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#lowercase-type-hint) (mago-linter)

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