Skip to content

Commit

Permalink
fix POST value resolving bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisGalliano committed Jan 23, 2019
1 parent 8116def commit b69832e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Actions/Resolver/Argument/Value/RequestValueResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function isSupported(ArgumentMetadataInterface $metadata): bool
public function value(ArgumentMetadataInterface $metadata)
{
$value = $this->getValue($metadata, $this->request->get());
if ($value !== null && $this->request->method()->type() === RequestMethodInterface::POST) {
if ($value === null && $this->request->method()->type() === RequestMethodInterface::POST) {
$value = $this->getValue($metadata, $this->request->post());
}
return $value;
Expand All @@ -58,4 +58,4 @@ private function getValue(ArgumentMetadataInterface $metadata, ParametersInterfa
}
return $value;
}
}
}

0 comments on commit b69832e

Please sign in to comment.