Skip to content

Commit 1419e0d

Browse files
minor #486 fix function signature tests (xabbuh)
This PR was merged into the 1.x branch. Discussion ---------- fix function signature tests Commits ------- 4d0166f fix function signature tests
2 parents c0fee7a + 4d0166f commit 1419e0d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/Mbstring/bootstrap80.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function mb_strrpos(?string $haystack, ?string $needle, ?int $offset = 0, ?strin
9393
function mb_strstr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strstr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
9494
}
9595
if (!function_exists('mb_get_info')) {
96-
function mb_get_info(?string $type = 'all'): array|string|int|false { return p\Mbstring::mb_get_info((string) $type); }
96+
function mb_get_info(?string $type = 'all'): array|string|int|false|null { return p\Mbstring::mb_get_info((string) $type); }
9797
}
9898
if (!function_exists('mb_http_output')) {
9999
function mb_http_output(?string $encoding = null): string|bool { return p\Mbstring::mb_http_output($encoding); }

src/Util/TestListenerTrait.php

+7
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ function {$f['name']}{$f['signature']}
129129
'array|string|null $string' => 'array|string $string',
130130
'array|string|null $from_encoding = null' => 'array|string|null $from_encoding = null',
131131
'array|string|null $from_encoding' => 'array|string $from_encoding',
132+
'string $characters = null' => '?string $characters = null',
133+
'string $charset = null' => '?string $charset = null',
134+
'string $encoding = null' => '?string $encoding = null',
135+
'string $language = null' => '?string $language = null',
136+
'string $transfer_encoding = null' => '?string $transfer_encoding = null',
137+
'string $type = null' => '?string $type = null',
138+
'int $length = null' => '?int $length = null',
132139
];
133140

134141
if (strtr($polyfillSignature, $map) !== $originalSignature) {

0 commit comments

Comments
 (0)