Skip to content

Commit b8d55cf

Browse files
committed
Update stubs
1 parent 4923dca commit b8d55cf

8 files changed

+36
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

33
#[\Since('8.5')]
4-
function grapheme_levenshtein(string $string1, string $string2, int $insertion_cost = 1, int $replacement_cost = 1, int $deletion_cost = 1): int|false
4+
function grapheme_levenshtein(string $string1, string $string2, int $insertion_cost = 1, int $replacement_cost = 1, int $deletion_cost = 1, string $locale = ""): int|false
55
{
66
}

stubs/ext/intl/grapheme_stripos.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
#[\Until('8.5')]
34
function grapheme_stripos(string $haystack, string $needle, int $offset = 0): int|false
45
{
6+
}
7+
#[\Since('8.5')]
8+
function grapheme_stripos(string $haystack, string $needle, int $offset = 0, string $locale = ""): int|false
9+
{
510
}

stubs/ext/intl/grapheme_stristr.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
#[\Until('8.5')]
34
function grapheme_stristr(string $haystack, string $needle, bool $beforeNeedle = false): string|false
45
{
6+
}
7+
#[\Since('8.5')]
8+
function grapheme_stristr(string $haystack, string $needle, bool $beforeNeedle = false, string $locale = ""): string|false
9+
{
510
}

stubs/ext/intl/grapheme_strpos.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
#[\Until('8.5')]
34
function grapheme_strpos(string $haystack, string $needle, int $offset = 0): int|false
45
{
6+
}
7+
#[\Since('8.5')]
8+
function grapheme_strpos(string $haystack, string $needle, int $offset = 0, string $locale = ""): int|false
9+
{
510
}

stubs/ext/intl/grapheme_strripos.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
#[\Until('8.5')]
34
function grapheme_strripos(string $haystack, string $needle, int $offset = 0): int|false
45
{
6+
}
7+
#[\Since('8.5')]
8+
function grapheme_strripos(string $haystack, string $needle, int $offset = 0, string $locale = ""): int|false
9+
{
510
}

stubs/ext/intl/grapheme_strrpos.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
#[\Until('8.5')]
34
function grapheme_strrpos(string $haystack, string $needle, int $offset = 0): int|false
45
{
6+
}
7+
#[\Since('8.5')]
8+
function grapheme_strrpos(string $haystack, string $needle, int $offset = 0, string $locale = ""): int|false
9+
{
510
}

stubs/ext/intl/grapheme_strstr.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
#[\Until('8.5')]
34
function grapheme_strstr(string $haystack, string $needle, bool $beforeNeedle = false): string|false
45
{
6+
}
7+
#[\Since('8.5')]
8+
function grapheme_strstr(string $haystack, string $needle, bool $beforeNeedle = false, string $locale = ""): string|false
9+
{
510
}

stubs/ext/intl/grapheme_substr.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
#[\Until('8.5')]
34
function grapheme_substr(string $string, int $offset, ?int $length = null): string|false
45
{
6+
}
7+
#[\Since('8.5')]
8+
function grapheme_substr(string $string, int $offset, ?int $length = null, string $locale = ""): string|false
9+
{
510
}

0 commit comments

Comments
 (0)