Skip to content

Commit 28451b6

Browse files
committed
refactor: minimum required PHP 8.3
1 parent 2089cf8 commit 28451b6

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎AGENTS.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ compatibility policy applies to what the latest tagged release ships.
9393

9494
### All base branches
9595

96-
- Production code must run on PHP 8.2. Do not require a newer PHP version,
96+
- Production code must run on PHP 8.3. Do not require a newer PHP version,
9797
even when a newer version is installed locally.
9898
- Signatures, properties, constants, default values, exceptions, side
9999
effects, configuration, and generated project files are all
@@ -116,7 +116,7 @@ compatibility policy applies to what the latest tagged release ships.
116116
intentional compatibility constraints. Do not remove an exclusion without
117117
dedicated justification and tests.
118118
- Every new class property must have a native type declaration. Use the
119-
most precise type supported by PHP 8.2; use `mixed` only when the
119+
most precise type supported by PHP 8.3; use `mixed` only when the
120120
property intentionally accepts unrelated types.
121121
- Do not add or change a type on an existing public or protected property
122122
mechanically. Property types affect inheritance and must follow the

‎contributing/pull_request.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ See [Contribution CSS](./css.md).
162162

163163
### Compatibility
164164

165-
CodeIgniter4 requires [PHP 8.2](https://php.net/releases/8_2_0.php).
165+
CodeIgniter4 requires [PHP 8.3](https://php.net/releases/8_3_0.php).
166166

167167
### Backwards Compatibility
168168

‎docs/installation/running.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ The local development server can be customized with three command line options:
105105
- You can also choose a specific version of PHP to use, with the `--php` CLI option, with its value set to the path of the PHP executable you want to use:
106106

107107
```console
108-
php spark serve --php /usr/bin/php8.2
108+
php spark serve --php /usr/bin/php8.3
109109
```
110110

111111
## Worker Mode with FrankenPHP
@@ -399,7 +399,7 @@ See [Handling Multiple Environments](../general/environments.md#apache).
399399

400400
## Hosting with nginx
401401

402-
nginx is the second most widely used HTTP server for web hosting. Here you can find an example configuration using PHP 8.2 FPM (unix sockets) under Ubuntu Server.
402+
nginx is the second most widely used HTTP server for web hosting. Here you can find an example configuration using PHP 8.3 FPM (unix sockets) under Ubuntu Server.
403403

404404
### default.conf
405405

@@ -423,7 +423,7 @@ server {
423423
include snippets/fastcgi-php.conf;
424424
425425
# With php-fpm:
426-
fastcgi_pass unix:/run/php/php8.2-fpm.sock;
426+
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
427427
# With php-cgi:
428428
# fastcgi_pass 127.0.0.1:9000;
429429
}

‎public/index.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*---------------------------------------------------------------
1010
*/
1111

12-
$minPhpVersion = '8.2'; // If you update this, don't forget to update `spark`.
12+
$minPhpVersion = '8.3'; // If you update this, don't forget to update `spark`.
1313
if (version_compare(PHP_VERSION, $minPhpVersion, '<')) {
1414
$message = sprintf(
1515
'Your PHP version must be %s or higher to run CodeIgniter. Current version: %s',

‎system/Commands/Worker/Views/frankenphp-worker.php.tpl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use Config\WorkerMode;
2424
*---------------------------------------------------------------
2525
*/
2626

27-
$minPhpVersion = '8.2';
27+
$minPhpVersion = '8.3';
2828
if (version_compare(PHP_VERSION, $minPhpVersion, '<')) {
2929
http_response_code(503);
3030
exit("PHP {$minPhpVersion}+ required. Current: " . PHP_VERSION);

‎utils/composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"php": "^8.2",
3+
"php": "^8.3",
44
"codeigniter/coding-standard": "^1.7",
55
"ergebnis/composer-normalize": "^2.28",
66
"friendsofphp/php-cs-fixer": "^3.76",

0 commit comments

Comments
 (0)