---
title: "lint/style/require-implode-separator"
pagination: false
---

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

<RuleId id="lint/style/require-implode-separator" />

In the [`lint-strict`](/docs/rules/presets/lint-strict) preset. In Rector's [`rector/php74`](/docs/rules/sets/rector/php74) set. Unsafe fix: it can change behavior.

## What it does

Function `implode` must be called with 2 arguments in the documented order.

## Configuration

```toml title="pun.toml"
[lint.rules]
"style/require-implode-separator" = "error"
```

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

## Replaces

- [`implode_call`](https://cs.symfony.com/doc/rules/function_notation/implode_call.html) (php-cs-fixer, risky)
- [`ConsistentImplode`](https://getrector.com/rule-detail/consistent-implode-rector) (rector)

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