Skip to content

Commit 5f27173

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.5
Conflicts: tests/system/Database/BaseConnectionTest.php tests/system/Database/ConfigTest.php
2 parents 02a9d7e + ebc9a57 commit 5f27173

11 files changed

Lines changed: 381 additions & 6 deletions

File tree

‎.github/workflows/test-phpunit.yml‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ jobs:
5959
- '8.0'
6060
- '8.1'
6161
- '8.2'
62+
- '8.3'
63+
include:
64+
- php-version: '8.3'
65+
composer-option: '--ignore-platform-req=php'
6266

6367
uses: ./.github/workflows/reusable-phpunit-test.yml # @TODO Extract to codeigniter4/.github repo
6468
with:
@@ -70,6 +74,7 @@ jobs:
7074
enable-coverage: ${{ matrix.php-version == needs.coverage-php-version.outputs.version }}
7175
enable-profiling: ${{ matrix.php-version == needs.coverage-php-version.outputs.version }}
7276
extra-extensions: imagick, redis, memcached
77+
extra-composer-options: ${{ matrix.composer-option }}
7378

7479
database-live-tests:
7580
needs:
@@ -84,6 +89,7 @@ jobs:
8489
- '8.0'
8590
- '8.1'
8691
- '8.2'
92+
- '8.3'
8793
db-platform:
8894
- MySQLi
8995
- OCI8
@@ -96,6 +102,8 @@ jobs:
96102
- php-version: '7.4'
97103
db-platform: MySQLi
98104
mysql-version: '8.0'
105+
- php-version: '8.3'
106+
composer-option: '--ignore-platform-req=php'
99107

100108
uses: ./.github/workflows/reusable-phpunit-test.yml # @TODO Extract to codeigniter4/.github repo
101109
with:
@@ -109,6 +117,7 @@ jobs:
109117
enable-coverage: ${{ matrix.php-version == needs.coverage-php-version.outputs.version }}
110118
enable-profiling: ${{ matrix.php-version == needs.coverage-php-version.outputs.version }}
111119
extra-extensions: mysqli, oci8, pgsql, sqlsrv-5.10.1, sqlite3
120+
extra-composer-options: ${{ matrix.composer-option }}
112121

113122
separate-process-tests:
114123
needs:
@@ -122,6 +131,10 @@ jobs:
122131
- '8.0'
123132
- '8.1'
124133
- '8.2'
134+
- '8.3'
135+
include:
136+
- php-version: '8.3'
137+
composer-option: '--ignore-platform-req=php'
125138

126139
uses: ./.github/workflows/reusable-phpunit-test.yml # @TODO Extract to codeigniter4/.github repo
127140
with:
@@ -133,6 +146,7 @@ jobs:
133146
enable-coverage: true # needs xdebug for assertHeaderEmitted() tests
134147
enable-profiling: ${{ matrix.php-version == needs.coverage-php-version.outputs.version }}
135148
extra-extensions: mysqli, oci8, pgsql, sqlsrv-5.10.1, sqlite3
149+
extra-composer-options: ${{ matrix.composer-option }}
136150

137151
cache-live-tests:
138152
needs:
@@ -146,6 +160,10 @@ jobs:
146160
- '8.0'
147161
- '8.1'
148162
- '8.2'
163+
- '8.3'
164+
include:
165+
- php-version: '8.3'
166+
composer-option: '--ignore-platform-req=php'
149167

150168
uses: ./.github/workflows/reusable-phpunit-test.yml # @TODO Extract to codeigniter4/.github repo
151169
with:
@@ -157,6 +175,7 @@ jobs:
157175
enable-coverage: ${{ matrix.php-version == needs.coverage-php-version.outputs.version }}
158176
enable-profiling: ${{ matrix.php-version == needs.coverage-php-version.outputs.version }}
159177
extra-extensions: redis, memcached
178+
extra-composer-options: ${{ matrix.composer-option }}
160179

161180
coveralls:
162181
name: Upload coverage results to Coveralls

‎README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ PHP version 7.4 or higher is required, with the following extensions installed:
9191
- [intl](http://php.net/manual/en/intl.requirements.php)
9292
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
9393

94+
> **Warning**
95+
> The end of life date for PHP 7.4 was November 28, 2022. If you are
96+
> still using PHP 7.4, you should upgrade immediately. The end of life date
97+
> for PHP 8.0 will be November 26, 2023.
98+
9499
Additionally, make sure that the following extensions are enabled in your PHP:
95100

96101
- json (enabled by default - don't turn it off)

‎admin/framework/README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ PHP version 7.4 or higher is required, with the following extensions installed:
4747
- [intl](http://php.net/manual/en/intl.requirements.php)
4848
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
4949

50+
> **Warning**
51+
> The end of life date for PHP 7.4 was November 28, 2022. If you are
52+
> still using PHP 7.4, you should upgrade immediately. The end of life date
53+
> for PHP 8.0 will be November 26, 2023.
54+
5055
Additionally, make sure that the following extensions are enabled in your PHP:
5156

5257
- json (enabled by default - don't turn it off)

‎admin/starter/README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ PHP version 7.4 or higher is required, with the following extensions installed:
5555
- [intl](http://php.net/manual/en/intl.requirements.php)
5656
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
5757

58+
> **Warning**
59+
> The end of life date for PHP 7.4 was November 28, 2022. If you are
60+
> still using PHP 7.4, you should upgrade immediately. The end of life date
61+
> for PHP 8.0 will be November 26, 2023.
62+
5863
Additionally, make sure that the following extensions are enabled in your PHP:
5964

6065
- json (enabled by default - don't turn it off)

‎phpstan.neon.dist‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ parameters:
3636
strictRules:
3737
allRules: false
3838
disallowedConstructs: true
39+
matchingInheritedMethodNames: true

‎system/HTTP/CLIRequest.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ public function __construct(App $config)
7373
ignore_user_abort(true);
7474

7575
$this->parseCommand();
76+
77+
// Set SiteURI for this request
78+
$this->uri = new SiteURI($config, $this->getPath());
7679
}
7780

7881
/**

‎tests/system/Database/BaseConnectionTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class BaseConnectionTest extends CIUnitTestCase
3232
'DBDriver' => 'MockDriver',
3333
'DBPrefix' => 'test_',
3434
'pConnect' => true,
35-
'DBDebug' => (ENVIRONMENT !== 'production'),
35+
'DBDebug' => true,
3636
'charset' => 'utf8mb4',
3737
'DBCollat' => 'utf8mb4_general_ci',
3838
'swapPre' => '',
@@ -50,7 +50,7 @@ final class BaseConnectionTest extends CIUnitTestCase
5050
'DBDriver' => 'MockDriver',
5151
'DBPrefix' => 'test_',
5252
'pConnect' => true,
53-
'DBDebug' => (ENVIRONMENT !== 'production'),
53+
'DBDebug' => true,
5454
'charset' => 'utf8mb4',
5555
'DBCollat' => 'utf8mb4_general_ci',
5656
'swapPre' => '',

‎tests/system/Database/ConfigTest.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class ConfigTest extends CIUnitTestCase
3232
'DBDriver' => 'MySQLi',
3333
'DBPrefix' => 'test_',
3434
'pConnect' => true,
35-
'DBDebug' => (ENVIRONMENT !== 'production'),
35+
'DBDebug' => true,
3636
'charset' => 'utf8mb4',
3737
'DBCollat' => 'utf8mb4_general_ci',
3838
'swapPre' => '',
@@ -51,7 +51,7 @@ final class ConfigTest extends CIUnitTestCase
5151
'DBDriver' => 'SQLite3',
5252
'DBPrefix' => 't_',
5353
'pConnect' => false,
54-
'DBDebug' => (ENVIRONMENT !== 'production'),
54+
'DBDebug' => true,
5555
'charset' => 'utf8mb4',
5656
'DBCollat' => 'utf8mb4_general_ci',
5757
'swapPre' => '',
@@ -70,7 +70,7 @@ final class ConfigTest extends CIUnitTestCase
7070
'DBDriver' => 'SQLite3',
7171
'DBPrefix' => 't_',
7272
'pConnect' => false,
73-
'DBDebug' => (ENVIRONMENT !== 'production'),
73+
'DBDebug' => true,
7474
'charset' => 'utf8mb4',
7575
'DBCollat' => 'utf8mb4_general_ci',
7676
'swapPre' => '',
@@ -89,7 +89,7 @@ final class ConfigTest extends CIUnitTestCase
8989
'DBDriver' => 'Postgre',
9090
'DBPrefix' => 't_',
9191
'pConnect' => false,
92-
'DBDebug' => (ENVIRONMENT !== 'production'),
92+
'DBDebug' => true,
9393
'charset' => 'utf8mb4',
9494
'DBCollat' => 'utf8mb4_general_ci',
9595
'swapPre' => '',

0 commit comments

Comments
 (0)