Skip to content

Commit

Permalink
Fix RiskyTruthyFalsyComparison issue
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Feb 6, 2024
1 parent 23ffeb9 commit f9c4aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BodyParams/FormUrlEncodedStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function parse(ServerRequestInterface $request): ServerRequestInterface
{
$parsedBody = $request->getParsedBody();

if (! empty($parsedBody)) {
if ($parsedBody !== null && $parsedBody !== []) {
return $request;
}

Expand Down

0 comments on commit f9c4aed

Please sign in to comment.