Skip to content

Commit

Permalink
Fix php warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Luigisa committed Sep 7, 2023
1 parent c8b282a commit 655525a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Routing/QueryRouteEnhancer.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function extractBody(Request $request) {
$values = array_merge($values, JsonHelper::decodeParams($content));
}

if (stripos($request->headers->get('content-type'), 'multipart/form-data') !== FALSE) {
if (stripos($request->headers->get('content-type') ?? '', 'multipart/form-data') !== FALSE) {
return $this->extractMultipart($request, $values);
}

Expand Down

0 comments on commit 655525a

Please sign in to comment.