浏览代码

Add deprecated tag to Response::type()

Refs #11335
ADmad 8 年之前
父节点
当前提交
b379b8e9f9
共有 1 个文件被更改,包括 2 次插入1 次删除
  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)
     {