From cfbc4292ddcace51308a4f2f446d310aa04e6133 Mon Sep 17 00:00:00 2001 From: Richard Tippin Date: Fri, 22 Mar 2024 19:36:31 -0400 Subject: [PATCH] Set "$contentRange" default to empty string if header key not found. Passing "null" to the second argument of preg_match is deprecated. --- src/Handler/ContentRangeUploadHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Handler/ContentRangeUploadHandler.php b/src/Handler/ContentRangeUploadHandler.php index d2b2e3a..9442d47 100644 --- a/src/Handler/ContentRangeUploadHandler.php +++ b/src/Handler/ContentRangeUploadHandler.php @@ -67,7 +67,7 @@ public function __construct(Request $request, $file, $config) { parent::__construct($request, $file, $config); - $contentRange = $this->request->header(self::CONTENT_RANGE_INDEX); + $contentRange = $this->request->header(self::CONTENT_RANGE_INDEX, ''); $this->tryToParseContentRange($contentRange); }