---
title: "format/strings/no-binary"
pagination: false
---

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

<RuleId id="format/strings/no-binary" />

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

## What it does

There should not be a binary flag before strings.

## Configuration

```toml title="pun.toml"
[format.rules]
"strings/no-binary" = true
```

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

## Replaces

- [`no_binary_string`](https://cs.symfony.com/doc/rules/string_notation/no_binary_string.html) (php-cs-fixer)
- [`no-redundant-binary-string-prefix`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#no-redundant-binary-string-prefix) (mago-linter)

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