Skip to content

Commit b22fb01

Browse files
committed
Revert "Remove second parameter incorrect nullable"
This reverts commit 7f6282a.
1 parent 7f6282a commit b22fb01

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

standard/standard_1.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -1008,14 +1008,14 @@ function explode(string $separator, string $string, int $limit = PHP_INT_MAX) {}
10081008
* implode as glue would be
10091009
* the second parameter and thus, the bad prototype would be used.
10101010
* </p>
1011-
* @param array $array <p>
1011+
* @param array|null $array <p>
10121012
* The array of strings to implode.
10131013
* </p>
10141014
* @return string a string containing a string representation of all the array
10151015
* elements in the same order, with the glue string between each element.
10161016
*/
10171017
#[Pure]
1018-
function implode(array|string $separator = "", array $array): string {}
1018+
function implode(array|string $separator = "", ?array $array): string {}
10191019

10201020
/**
10211021
* Alias:
@@ -1026,14 +1026,14 @@ function implode(array|string $separator = "", array $array): string {}
10261026
* implode as glue would be
10271027
* the second parameter and thus, the bad prototype would be used.
10281028
* </p>
1029-
* @param array $array <p>
1029+
* @param array|null $array <p>
10301030
* The array of strings to implode.
10311031
* </p>
10321032
* @return string a string containing a string representation of all the array
10331033
* elements in the same order, with the glue string between each element.
10341034
*/
10351035
#[Pure]
1036-
function join(array|string $separator = "", array $array): string {}
1036+
function join(array|string $separator = "", ?array $array): string {}
10371037

10381038
/**
10391039
* Set locale information

0 commit comments

Comments
 (0)