Skip to content

Commit 70c400c

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.5
2 parents edfa0b5 + f277814 commit 70c400c

File tree

6 files changed

+8
-10
lines changed

6 files changed

+8
-10
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"phpunit/phpcov": "^8.2",
3434
"phpunit/phpunit": "^9.1",
3535
"predis/predis": "^1.1 || ^2.0",
36-
"rector/rector": "0.18.4",
36+
"rector/rector": "0.18.5",
3737
"vimeo/psalm": "^5.0"
3838
},
3939
"suggest": {

rector.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
use Rector\EarlyReturn\Rector\Return_\PreparedValueToEarlyReturnRector;
3636
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
3737
use Rector\Php70\Rector\FuncCall\RandomFunctionRector;
38-
use Rector\Php71\Rector\FuncCall\CountOnNullRector;
3938
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
4039
use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector;
4140
use Rector\PHPUnit\Set\PHPUnitSetList;
@@ -105,9 +104,6 @@
105104
__DIR__ . '/system/Session/Handlers',
106105
],
107106

108-
// sometime too detail
109-
CountOnNullRector::class,
110-
111107
// use mt_rand instead of random_int on purpose on non-cryptographically random
112108
RandomFunctionRector::class,
113109

system/CodeIgniter.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -971,8 +971,7 @@ protected function display404errors(PageNotFoundException $e)
971971
// Display 404 Errors
972972
$this->response->setStatusCode($e->getCode());
973973

974-
echo $this->outputBufferingEnd();
975-
flush();
974+
$this->outputBufferingEnd();
976975

977976
// Throws new PageNotFoundException and remove exception message on production.
978977
throw PageNotFoundException::forPageNotFound(

system/Debug/Toolbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function run(float $startTime, float $totalTime, RequestInterface $reques
8383
$data['isAJAX'] = $request->isAJAX();
8484
$data['startTime'] = $startTime;
8585
$data['totalTime'] = $totalTime * 1000;
86-
$data['totalMemory'] = number_format((memory_get_peak_usage()) / 1024 / 1024, 3);
86+
$data['totalMemory'] = number_format(memory_get_peak_usage() / 1024 / 1024, 3);
8787
$data['segmentDuration'] = $this->roundTo($data['totalTime'] / 7);
8888
$data['segmentCount'] = (int) ceil($data['totalTime'] / $data['segmentDuration']);
8989
$data['CI_VERSION'] = CodeIgniter::CI_VERSION;

user_guide_src/source/changelogs/v4.4.2.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ Deprecations
3232
Bugs Fixed
3333
**********
3434

35+
- **CodeIgniter:** Fixed a bug that returned "200 OK" response status code when
36+
Page Not Found.
37+
3538
See the repo's
3639
`CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md>`_
3740
for a complete list of bugs fixed.

user_guide_src/source/extending/core_classes/003.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace App\Libraries;
44

5-
use CodeIgniter\Router\RouteCollection;
5+
use CodeIgniter\Router\RouteCollection as BaseRouteCollection;
66

7-
class RouteCollection extends RouteCollection
7+
class RouteCollection extends BaseRouteCollection
88
{
99
// ...
1010
}

0 commit comments

Comments
 (0)