Skip to content

Commit aa4aa24

Browse files
committed
Update logic in a ternary operator
1 parent 804b983 commit aa4aa24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Request.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,9 +568,9 @@ protected function getFilteredParsedBody(
568568
$variable = $name === null
569569
? $this->parsedBody[0]
570570
: ArraySimple::value($name, $this->parsedBody[0]);
571-
return $filter !== null
572-
? \filter_var($variable, $filter, $filterOptions)
573-
: $variable;
571+
return $filter === null
572+
? $variable
573+
: \filter_var($variable, $filter, $filterOptions);
574574
}
575575

576576
/**

0 commit comments

Comments
 (0)