---
title: "lint/php-8.4"
pagination: false
---

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

Upgrade to PHP 8.4: code a newer PHP removes, deprecates or does better.

**[add-csv-escape-argument](/docs/rules/lint/php-8-4/add-csv-escape-argument)**

Add escape argument on CSV function calls

In the `lint-recommended` preset and every stricter one. In Rector's `rector/php84` set. Safe fix. Runs only when `[php] version` is 8.4 or later.

**[prefer-array-find](/docs/rules/lint/php-8-4/prefer-array-find)**

Replace foreach loops with array_find(), array_find_key(), array_any() or array_all() (PHP 8.4).

In the `lint-recommended` preset and every stricter one. In Rector's `rector/php-polyfills`, `rector/php84` sets. Safe fix. Runs only when `[php] version` is 8.4 or later.

**[prefer-round-mode-enum](/docs/rules/lint/php-8-4/prefer-round-mode-enum)**

Replace rounding mode constant to RoundMode enum in `round()`

In the `lint-recommended` preset and every stricter one. In Rector's `rector/php84` set. Safe fix. Runs only when `[php] version` is 8.4 or later.
