---
title: "format/functions/backtick-to-shell-exec"
pagination: false
---

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

<RuleId id="format/functions/backtick-to-shell-exec" />

Not in any preset. Safe fix. Upstream gates: `strictRules.disallowedBacktick`.

## What it does

Converts backtick operators to `shell_exec` calls.

## Configuration

```toml title="pun.toml"
[format.rules]
"functions/backtick-to-shell-exec" = true
```

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

## Replaces

- [`backtick_to_shell_exec`](https://cs.symfony.com/doc/rules/alias/backtick_to_shell_exec.html) (php-cs-fixer)
- [`ShellExecFunctionCallOverBackticks`](https://getrector.com/rule-detail/shell-exec-function-call-over-backticks-rector) (rector)
- [`BacktickRule`](https://phpstan.org/error-identifiers/backtick.deprecated) (phpstan-classes)
- [`DisallowedBacktickRule`](https://github.com/phpstan/phpstan-strict-rules#readme) (phpstan-classes)
- [`deprecated-shell-execute-string`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#deprecated-shell-execute-string) (mago-linter)
- [`no-shell-execute-string`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#no-shell-execute-string) (mago-linter)
- [`backtick.deprecated`](https://phpstan.org/error-identifiers/backtick.deprecated) (phpstan)
- [`backtick.notAllowed`](https://phpstan.org/error-identifiers/backtick.notAllowed) (phpstan-strict-rules)

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