Skip to content

Commit 37b3f5e

Browse files
committed
Simplifies conditional
1 parent 376ea79 commit 37b3f5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ public function getParsedBody(
540540
array | int $filterOptions = 0
541541
) : mixed {
542542
// TODO: If enable_post_data_reading ini-setting is disabled, getPost will always be empty!
543-
if ($this->getMethod() === Method::POST) {
543+
if ($this->isMethod(Method::POST)) {
544544
return $this->getPost($name, $filter, $filterOptions);
545545
}
546546
if (!$this->isParsedBody()) {

0 commit comments

Comments
 (0)