Skip to content

Commit eff7220

Browse files
author
Trevor North
committed
Fix return type hint for ServerReqeust::registerMediaTypeParser
1 parent a6372bf commit eff7220

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServerRequest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -983,9 +983,9 @@ public function getServerParam($key, $default = null)
983983
*
984984
* @param string $mediaType A HTTP media type (excluding content-type params).
985985
* @param callable $callable A callable that returns parsed contents for media type.
986-
* @return self
986+
* @return static
987987
*/
988-
public function registerMediaTypeParser($mediaType, callable $callable)
988+
public function registerMediaTypeParser($mediaType, callable $callable): ServerRequestInterface
989989
{
990990
if ($callable instanceof Closure) {
991991
$callable = $callable->bindTo($this);

0 commit comments

Comments
 (0)