Browse Source

Add deprecated tag to Response::type()

Refs #11335
ADmad 8 years ago
parent
commit
b379b8e9f9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/Http/Response.php

+ 2 - 1
src/Http/Response.php

@@ -1041,7 +1041,8 @@ class Response implements ResponseInterface
      * ```
      *
      * @param string|null $contentType Content type key.
-     * @return mixed Current content type or false if supplied an invalid content type
+     * @return mixed Current content type or false if supplied an invalid content type.
+     * @deprecated 3.5.5 Use getType() or withType() instead.
      */
     public function type($contentType = null)
     {