Skip to content

Commit 79e8ed6

Browse files
authored
[4.x] Upmerge 20260629 (#65)
* [3.x][PHP8.5] Passing a string which is not a single byte to ord() is deprecated (#63) https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_passing_string_which_are_not_one_byte_long_to_ord * [3.x][PHP8.5] Using null as an array offset is now deprecated (#64) https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_using_values_null_as_an_array_offset_and_when_calling_array_key_exists
1 parent 860c4ae commit 79e8ed6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/StringHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ abstract class StringHelper
5454
*/
5555
public static function increment($string, $style = 'default', $n = 0)
5656
{
57+
$style ??= 'default';
5758
$styleSpec = static::$incrementStyles[$style] ?? static::$incrementStyles['default'];
5859

5960
// Regular expression search and replace patterns.

0 commit comments

Comments
 (0)