Skip to content

Commit 98a7290

Browse files
committed
fix: restore null coalesce for oldFilterOrder and add changelog entry
1 parent 581921a commit 98a7290

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## [v4.7.5](https://github.com/codeigniter4/CodeIgniter4/tree/v4.7.5) (Unreleased)
4+
5+
[Full Changelog](https://github.com/codeigniter4/CodeIgniter4/compare/v4.7.4...v4.7.5)
6+
7+
### Refactoring
8+
9+
* refactor: simplify and optimize handleRequest method in CodeIgniter by @gr8man in https://github.com/codeigniter4/CodeIgniter4/pull/10369
10+
11+
### Breaking Changes
12+
13+
* **CodeIgniter:** `storePreviousURL()` no longer accepts arbitrary request objects with an `isAJAX()` method — only `IncomingRequest` instances are checked. This aligns with the fact that `isAJAX()` only exists on `IncomingRequest`, so CLI requests were never affected. If you rely on a custom request class that implements `isAJAX()` and passes it to `storePreviousURL()`, you must ensure it extends `IncomingRequest`.
14+
315
## [v4.7.4](https://github.com/codeigniter4/CodeIgniter4/tree/v4.7.4) (2026-07-07)
416
[Full Changelog](https://github.com/codeigniter4/CodeIgniter4/compare/v4.7.3...v4.7.4)
517

‎system/CodeIgniter.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,8 @@ protected function handleRequest(?RouteCollectionInterface $routes, Cache $cache
475475
if ($routeFilters !== null) {
476476
$filters->enableFilters($routeFilters, 'before');
477477

478-
if (! config(Feature::class)->oldFilterOrder) {
478+
$oldFilterOrder = config(Feature::class)->oldFilterOrder ?? false; // @phpstan-ignore nullCoalesce.property
479+
if (! $oldFilterOrder) {
479480
$routeFilters = array_reverse($routeFilters);
480481
}
481482

0 commit comments

Comments
 (0)