Skip to content

Commit

Permalink
Fix type error when null content boundary (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevay authored Jun 25, 2022
1 parent 23a2602 commit 545189b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StreamingParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function parseForm(Request $request): ConcurrentIterator
{
$boundary = parseContentBoundary($request->getHeader('content-type') ?? '');
if ($boundary === null) {
return Pipeline::fromIterable([]);
return Pipeline::fromIterable([])->getIterator();
}

$source = new Queue();
Expand Down

0 comments on commit 545189b

Please sign in to comment.