Skip to content

Commit 365e4c1

Browse files
authored
Merge pull request #8067 from kenjis/refactor-IncomingRequest-uri
refactor: make IncomingRequest::$uri protected
2 parents de282b9 + 9e05289 commit 365e4c1

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

system/HTTP/IncomingRequest.php

+2-6
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,9 @@ class IncomingRequest extends Request
6767
* AFTER the baseURL. So, if hosted in a sub-folder this will
6868
* appear different than actual URI path. If you need that use getPath().
6969
*
70-
* @deprecated Will be protected. Use getUri() instead.
71-
*
7270
* @var URI
7371
*/
74-
public $uri;
72+
protected $uri;
7573

7674
/**
7775
* The detected URI path (relative to the baseURL).
@@ -125,10 +123,8 @@ class IncomingRequest extends Request
125123
* Configuration settings.
126124
*
127125
* @var App
128-
*
129-
* @deprecated Will be protected.
130126
*/
131-
public $config;
127+
protected $config;
132128

133129
/**
134130
* Holds the old data from a redirect.

user_guide_src/source/changelogs/v4.5.0.rst

+2
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ Test
130130
Others
131131
------
132132

133+
- **IncomingRequest::** The visibility of the deprecated properties ``$uri`` and
134+
``$config`` has been changed to protected.
133135
- **Config:** The deprecated ``CodeIgniter\Config\Config`` class has been removed.
134136

135137
Enhancements

0 commit comments

Comments
 (0)