diff --git a/rector.php b/rector.php index 747cd4ce8bbd..37e71a6d60a3 100644 --- a/rector.php +++ b/rector.php @@ -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 diff --git a/system/HTTP/Response.php b/system/HTTP/Response.php index bd1ad02d763f..a061544e9f82 100644 --- a/system/HTTP/Response.php +++ b/system/HTTP/Response.php @@ -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.