Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 72d21a1

Browse files
Merge pull request #21 from weierophinney/hotfix/cast-null-to-empty-string
Do not pass null value to strtolower
2 parents 02cc861 + bbe459f commit 72d21a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Decode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public static function splitContentType($type, $wantedPart = null)
185185
*/
186186
public static function splitHeaderField($field, $wantedPart = null, $firstName = '0')
187187
{
188-
$wantedPart = strtolower($wantedPart);
188+
$wantedPart = strtolower($wantedPart ?? '');
189189
$firstName = strtolower($firstName);
190190

191191
// special case - a bit optimized

0 commit comments

Comments
 (0)