Skip to content

Commit 71e4831

Browse files
committed
docs: add @deprecated to unused param
1 parent 4f9fe45 commit 71e4831

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

rector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
__DIR__ . '/system/Router/AutoRouterImproved.php',
9595
// @TODO remove if deprecated $config is removed
9696
__DIR__ . '/system/HTTP/Request.php',
97+
__DIR__ . '/system/HTTP/Response.php',
9798
],
9899

99100
// check on constant compare

system/HTTP/Response.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,10 @@ class Response extends Message implements ResponseInterface
146146
* @param App $config
147147
*
148148
* @todo Recommend removing reliance on config injection
149+
*
150+
* @deprecated 4.5.0 The param $config is no longer used.
149151
*/
150-
public function __construct($config)
152+
public function __construct($config) // @phpstan-ignore-line
151153
{
152154
// Default to a non-caching page.
153155
// Also ensures that a Cache-control header exists.

user_guide_src/source/changelogs/v4.5.0.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ Deprecations
248248

249249
- **CodeIgniter:** The ``determinePath()`` method has been deprecated. No longer
250250
used.
251+
- **Response:** The constructor parameter ``$config`` has been deprecated. No
252+
longer used.
251253

252254
Bugs Fixed
253255
**********

0 commit comments

Comments
 (0)