From 9229e15f2e6ba772f0c55dd6986c563b937170a8 Mon Sep 17 00:00:00 2001
From: Paragon Initiative Enterprises <security@paragonie.com>
Date: Mon, 17 Jan 2022 00:32:27 -0500
Subject: [PATCH] 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.
---
 src/Binary.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Binary.php b/src/Binary.php
index 0643fb9..add0522 100644
--- a/src/Binary.php
+++ b/src/Binary.php
@@ -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 '';
-- 
GitLab