Skip to content

Commit 9708c08

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.6
2 parents 432e4e0 + dd39902 commit 9708c08

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"phpunit/phpcov": "^9.0.2",
3333
"phpunit/phpunit": "^10.5.16",
3434
"predis/predis": "^1.1 || ^2.0",
35-
"rector/rector": "1.1.0",
35+
"rector/rector": "1.1.1",
3636
"vimeo/psalm": "^5.0"
3737
},
3838
"replace": {

system/Commands/Server/Serve.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function run(array $params)
103103
$docroot = escapeshellarg(FCPATH);
104104

105105
// Mimic Apache's mod_rewrite functionality with user settings.
106-
$rewrite = escapeshellarg(__DIR__ . '/rewrite.php');
106+
$rewrite = escapeshellarg(SYSTEMPATH . 'rewrite.php');
107107

108108
// Call PHP's built-in webserver, making sure to set our
109109
// base path to the public folder, and to use the rewrite file

system/Commands/Server/rewrite.php renamed to system/rewrite.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@
2121
*/
2222

2323
// @codeCoverageIgnoreStart
24-
// Avoid this file run when listing commands
25-
if (PHP_SAPI === 'cli') {
26-
return;
27-
}
28-
2924
$uri = urldecode(
3025
parse_url('https://codeigniter.com' . $_SERVER['REQUEST_URI'], PHP_URL_PATH) ?? ''
3126
);

0 commit comments

Comments
 (0)