Symfony Polyfill 1.34.0 adds ten new polyfills covering PHP 8.4, 8.5, and 8.6 features, enabling forward-compatible code on older PHP versions. Key additions include PDO driver-specific subclasses (Pdo\Mysql, Pdo\Pgsql, etc.), bcmath rounding functions (bcround, bcceil, bcfloor), IntlListFormatter for locale-aware list formatting, locale_is_right_to_left(), grapheme_levenshtein(), Filter exception classes, the DelayedTargetValidation attribute, the upcoming PHP 8.6 clamp() function, a polyfill for the deepclone Symfony PHP extension, and a Collator::compare() fallback. The release also includes bug fixes for bcdiv, mbstring, and PHP 7.2 compatibility.

5m read timeFrom symfony.com
Post cover image
Table of contents
PDO driver-specific subclassesbcmath rounding functionsIntlListFormatterlocale_is_right_to_left()grapheme_levenshtein()Filter exception classesDelayedTargetValidation attributeclamp()Polyfill for the deepclone extensionCollator::compare() fallbackFull Changelog

Sort: