---
title: "format/operators/no-space-around-double-colon"
pagination: false
---

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

<RuleId id="format/operators/no-space-around-double-colon" />

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

## What it does

There must be no space around double colons (also called Scope Resolution Operator or Paamayim Nekudotayim).

## Configuration

```toml title="pun.toml"
[format.rules]
"operators/no-space-around-double-colon" = true
```

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

## Replaces

- [`no_space_around_double_colon`](https://cs.symfony.com/doc/rules/operator/no_space_around_double_colon.html) (php-cs-fixer)

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