Skip to content

Commit

Permalink
Fix return type hint for ServerReqeust::registerMediaTypeParser
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor North committed Dec 4, 2018
1 parent a6372bf commit eff7220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ServerRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -983,9 +983,9 @@ public function getServerParam($key, $default = null)
*
* @param string $mediaType A HTTP media type (excluding content-type params).
* @param callable $callable A callable that returns parsed contents for media type.
* @return self
* @return static
*/
public function registerMediaTypeParser($mediaType, callable $callable)
public function registerMediaTypeParser($mediaType, callable $callable): ServerRequestInterface
{
if ($callable instanceof Closure) {
$callable = $callable->bindTo($this);
Expand Down

0 comments on commit eff7220

Please sign in to comment.