Commit 9229e15f authored by Paragon Initiative Enterprises's avatar Paragon Initiative Enterprises
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.
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -69,7 +69,7 @@ abstract class Binary
public static function safeSubstr(
string $str,
int $start = 0,
int $length = null
$length = null
): string {
if ($length === 0) {
return '';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment