Skip to content

Commit 9229e15

Browse files
Revert type strictness regression
PHP 7.0 doesn't support nullable types, so we can't type-hint this as ?int. If we declare it as int, users can't explicitly pass NULL.
1 parent 74c5801 commit 9229e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Binary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static function safeStrlen(string $str): int
6969
public static function safeSubstr(
7070
string $str,
7171
int $start = 0,
72-
int $length = null
72+
$length = null
7373
): string {
7474
if ($length === 0) {
7575
return '';

0 commit comments

Comments
 (0)