Skip to content

Commit 4322c75

Browse files
Mark param explicitly as nullable
- Deprecated: ipl\Stdlib\Str::trimSplit(): Implicitly marking parameter $limit as nullable is deprecated, the explicit nullable type must be used instead
1 parent 9b7a903 commit 4322c75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Str.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static function symmetricSplit(?string $subject, string $delimiter, int $
7676
*
7777
* @return array<string>
7878
*/
79-
public static function trimSplit(?string $subject, string $delimiter = ',', int $limit = null)
79+
public static function trimSplit(?string $subject, string $delimiter = ',', ?int $limit = null)
8080
{
8181
if ($subject === null || empty($delimiter)) {
8282
return [];

0 commit comments

Comments
 (0)