diff --git a/src/Http/Response.php b/src/Http/Response.php index 857a449d836..a5a3f6d52ed 100644 --- a/src/Http/Response.php +++ b/src/Http/Response.php @@ -1140,7 +1140,7 @@ public function type($contentType = null) /** * Sets a content type definition into the map. * - * E.g.: setType('xhtml' => ['application/xhtml+xml', 'application/xhtml']) + * E.g.: setTypeMap('xhtml', ['application/xhtml+xml', 'application/xhtml']) * * This is needed for RequestHandlerComponent and recognition of types. *