---
title: "format/statements/no-mixed-echo-print"
pagination: false
---

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

<RuleId id="format/statements/no-mixed-echo-print" />

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

## What it does

Either language construct `print` or `echo` should be used.

## Configuration

```toml title="pun.toml"
[format.rules]
"statements/no-mixed-echo-print" = true
```

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

## Options

| Name | Type | Allowed values | Default | Upstream name |
| --- | --- | --- | --- | --- |
| `use` | `enum` | `print`, `echo` | `"echo"` | `use` |

## Replaces

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

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