Skip to content

Commit

Permalink
fix accept header missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudiu Pintiuta committed May 27, 2024
1 parent c238e5e commit aa47bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App/src/Middleware/ContentNegotiationMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function process(
public function formatAcceptRequest(string $accept): array
{
$accept = array_map(function ($item) {
return trim(strtok($item, ';'));
return trim((string) strtok($item, ';'));
}, explode(',', $accept));

return array_filter($accept);
Expand Down

0 comments on commit aa47bbd

Please sign in to comment.