From 579e7016bb97f8d1ad64e407e3159138191fcbb6 Mon Sep 17 00:00:00 2001 From: Christian Heel <66922325+heelc29@users.noreply.github.com> Date: Sun, 28 Sep 2025 18:25:27 +0200 Subject: [PATCH] [3.x][PHP8.5] Using null as an array offset is now deprecated https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_using_values_null_as_an_array_offset_and_when_calling_array_key_exists --- src/StringHelper.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/StringHelper.php b/src/StringHelper.php index 5748ecff..cbdb2137 100644 --- a/src/StringHelper.php +++ b/src/StringHelper.php @@ -54,6 +54,7 @@ abstract class StringHelper */ public static function increment($string, $style = 'default', $n = 0) { + $style ??= 'default'; $styleSpec = static::$incrementStyles[$style] ?? static::$incrementStyles['default']; // Regular expression search and replace patterns.