Skip to content

Commit 6536574

Browse files
committed
1 parent 0b3d335 commit 6536574

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)