You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ac2b0f9
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/changelogs/v4.8.0.md
+20-19Lines changed: 20 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,8 +65,8 @@ Release Date: Unreleased
65
65
66
66
-**CLI:** The `Console::run()` method now accepts an optional `array $tokens` parameter. This allows you to pass an array of command tokens directly to the console runner, which is useful for testing or programmatically running commands. If not provided, it will default to using the global `$argv`.
67
67
68
-
-**CodeIgniter:** The deprecated parameters in methods have been removed:
69
-
-`CodeIgniter\CodeIgniter::handleRequest()` no longer accepts the deprecated `$cacheConfig` and `$returnResponse` parameters.
68
+
-**CodeIgniter:** The deprecated parameters in methods have been removed:
69
+
-`CodeIgniter\CodeIgniter::handleRequest()` no longer accepts the deprecated `$cacheConfig` and `$returnResponse` parameters.
70
70
- `$cacheConfig` is no longer used and is now hard deprecated. A deprecation notice will be triggered if this is passed to the method.
71
71
- `$returnResponse` has been removed, since it was already deprecated and unused.
72
72
- The updated method signature is now `handleRequest(?RouteCollectionInterface $routes, ?Cache $cacheConfig = null)`.
@@ -75,7 +75,7 @@ Release Date: Unreleased
75
75
76
76
-**Config:**`CodeIgniter\Config\Services::request()` no longer accepts any parameter.
77
77
78
-
-**Database:** The following methods have had their signatures updated to remove deprecated parameters:
78
+
-**Database:** The following methods have had their signatures updated to remove deprecated parameters:
79
79
-`CodeIgniter\Database\Forge::_createTable()` no longer accepts the deprecated `$ifNotExists` parameter. The method signature is now `_createTable(string $table, array $attributes)`.
80
80
81
81
-**HTTP:**`CodeIgniter\HTTP\OutgoingRequest::__construct()` now requires the `$uri` parameter, which was previously `?URI $uri = null`. Passing `null` only worked when a `Host` header was supplied in the same call, since the constructor otherwise dereferences the URI to set that header. Consequently `OutgoingRequest::getUri()` now returns `URI` instead of `URI|null`, matching `OutgoingRequestInterface`. See [Upgrading from 4.7.x to 4.8.0](../installation/upgrade_480.md) for the migration.
@@ -86,41 +86,41 @@ Release Date: Unreleased
86
86
87
87
### Property Scope Changes
88
88
89
-
-**HTTP:** The following properties have changed their scope (visibility):
89
+
-**HTTP:** The following properties have changed their scope (visibility):
90
90
-`CodeIgniter\HTTP\RequestTrait::$ipAddress` is now private (previously protected).
91
91
92
92
### Method Scope Changes
93
93
94
94
-**CLI:**`CodeIgniter\CLI\Commands::getCommandAlternatives()` is now public (previously protected).
95
95
96
-
-**HTTP:** The following methods have changed their scope (visibility):
96
+
-**HTTP:** The following methods have changed their scope (visibility):
97
97
-`CodeIgniter\HTTP\URI::setUri()` is now private (previously public).
98
98
-`CodeIgniter\HTTP\URI::refreshPath()` is now protected (previously public).
99
99
-`CodeIgniter\HTTP\SiteURI::refreshPath()` is now protected (previously public).
100
100
101
101
### Removed Deprecated Items
102
102
103
-
-**Autoloader:** Removed the following deprecated methods:
103
+
-**Autoloader:** Removed the following deprecated methods:
-`CLI.commandAlias` and `CLI.helpAliases` (command alias rendering in `list` and `help`)
362
362
-`CLI.altCommandNone`, `CLI.altCommandRun`, and `CLI.altCommandSelect` (correcting a mistyped command)
363
363
-`CLI.generator.invalidCommandType` (`make:command` rejecting an invalid `--type`)
364
364
-`CLI.generator.invalidReturnType` (`make:model` rejecting an invalid `--return`)
365
365
-`Commands.invalidCommandAlias`, `Commands.commandAliasSameAsName`, `Commands.duplicateCommandAlias`, `Commands.aliasClashesWithCommandName`, and `Commands.aliasClashesWithAlias` (command alias validation)
366
366
367
-
- Removed deprecated language keys tied to removed exception constructors:
367
+
- Removed deprecated language keys tied to removed exception constructors:
-**Config:** Fixed a bug where instantiating an anonymous `BaseConfig` subclass threw a `ValueError` from `getenv()` on PHP 8.6.
397
+
-**Testing:** Fixed a bug where `ReflectionHelper::getPrivateMethodInvoker()` passed an object when invoking a static method, which is deprecated in PHP 8.6.
397
398
398
399
See the repo's [CHANGELOG.md](https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md) for a complete list of bugs fixed.
0 commit comments