Skip to content

Commit

Permalink
docs: add @deprecated to unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Nov 3, 2023
1 parent 4f9fe45 commit 79b2bca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
__DIR__ . '/system/Router/AutoRouterImproved.php',
// @TODO remove if deprecated $config is removed
__DIR__ . '/system/HTTP/Request.php',
__DIR__ . '/system/HTTP/Response.php',
],

// check on constant compare
Expand Down
4 changes: 3 additions & 1 deletion system/HTTP/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ class Response extends Message implements ResponseInterface
* @param App $config
*
* @todo Recommend removing reliance on config injection
*
* @deprecated 4.5.0 The param $config is no longer used.
*/
public function __construct($config)
public function __construct($config) // @phpstan-ignore-line
{
// Default to a non-caching page.
// Also ensures that a Cache-control header exists.
Expand Down

0 comments on commit 79b2bca

Please sign in to comment.