ソースを参照

Merge pull request #11339 from cakephp/ADmad-patch-1

Add deprecated tag to Response::type()
Mark Story 8 年 前
コミット
d913b2eca9
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)
     {