---
title: "format/statements/octal-notation"
pagination: false
---

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

<RuleId id="format/statements/octal-notation" />

Not in any preset. Safe fix.

## What it does

Literal octal must be in `0o` notation.

## Configuration

```toml title="pun.toml"
[format.rules]
"statements/octal-notation" = true
```

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

## Replaces

- [`octal_notation`](https://cs.symfony.com/doc/rules/basic/octal_notation.html) (php-cs-fixer)
- [`explicit-octal`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#explicit-octal) (mago-linter)

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