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

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

The casing of keywords, constants, types and names. Also in [analyse](/docs/rules/analyse/casing) (1).

**[class-reference](/docs/rules/format/casing/class-reference)**

When referencing an internal class it must be written using the correct casing.

Not in any preset. Safe fix.

**[constants](/docs/rules/format/casing/constants)**

The PHP constants `true`, `false`, and `null` MUST be written using the correct casing.

In the `format-laravel` and `format-psr12` presets. Safe fix.

**[integer-literals](/docs/rules/format/casing/integer-literals)**

Integer literals must be in correct case.

In the `format-laravel` preset. Safe fix.

**[keywords](/docs/rules/format/casing/keywords)**

PHP keywords MUST be in lower case.

In the `format-laravel` and `format-psr12` presets. Safe fix.

**[magic-constants](/docs/rules/format/casing/magic-constants)**

Magic constants should be referred to using the correct casing.

In the `format-laravel` preset. Safe fix.

**[magic-methods](/docs/rules/format/casing/magic-methods)**

Magic method definitions and calls must be using the correct casing.

In the `format-laravel` preset. Safe fix.

**[native-functions](/docs/rules/format/casing/native-functions)**

Function defined by PHP should be called using the correct casing.

In the `format-laravel` preset. Safe fix.

**[native-types](/docs/rules/format/casing/native-types)**

Native type declarations should be used in the correct case.

In the `format-laravel` preset. Safe fix.

**[static-reference](/docs/rules/format/casing/static-reference)**

Class static references `self`, `static` and `parent` MUST be in lower case.

In the `format-laravel` and `format-psr12` presets. Safe fix.
