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

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

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

**[prefer-clamp](/docs/rules/lint/php-8-6/prefer-clamp)**

Convert nested min()/max() calls to clamp()

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

**[prefer-readonly-property-default](/docs/rules/lint/php-8-6/prefer-readonly-property-default)**

Move a constant constructor assignment of a readonly property to a property default value

In the `lint-strict` preset. In Rector's `rector/php86` set. Unsafe fix: it can change behavior. Runs only when `[php] version` is 8.6 or later.
