@
fix: require PHP 8.3 (Joomla 6) across code, composer, docs Joomla 6 requires PHP 8.3+, and the MokoGitea repo metadata php_minimum is 8.3, but the extension still enforced/declared 8.1: - DashboardModel health check: PHP_VERSION >= 8.1.0 -> 8.3.0 - MokoRestore preflight check: 8.1 -> 8.3 (hint now "Joomla 6 requires PHP 8.3+") - composer.json require php: >=8.1 -> >=8.3 - .mokogitea/CLAUDE.md: PHP 8.1+ -> 8.3+ (both places) Claude-Session: https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i @
This commit is contained in:
@@ -7,7 +7,7 @@ Full-site backup and restore for Joomla — database, files, and configuration.
|
||||
| Field | Value |
|
||||
|---|---|
|
||||
| **Package** | `pkg_mokosuitebackup` |
|
||||
| **Language** | PHP 8.1+ |
|
||||
| **Language** | PHP 8.3+ |
|
||||
| **Branch** | develop on `dev`, merge to `main` (protected) |
|
||||
| **Wiki** | [MokoSuiteBackup Wiki](https://git.mokoconsulting.tech/MokoConsulting/MokoSuiteBackup/wiki) |
|
||||
|
||||
@@ -64,7 +64,7 @@ Joomla **package** with four sub-extensions:
|
||||
|
||||
## Coding Standards
|
||||
|
||||
- PHP 8.1+ minimum
|
||||
- PHP 8.3+ minimum (Joomla 6)
|
||||
- Joomla 4/5 DI container pattern: `services/provider.php` → Extension class
|
||||
- Legacy stub `.php` file required for plugin loader but empty
|
||||
- `SubscriberInterface` for event subscription (not `on*` method naming)
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=8.1",
|
||||
"php": ">=8.3",
|
||||
"ext-zip": "*",
|
||||
"ext-pdo": "*",
|
||||
"ext-pdo_mysql": "*",
|
||||
|
||||
@@ -480,8 +480,8 @@ function actionPreflight(): array
|
||||
$checks[] = [
|
||||
'label' => 'PHP Version',
|
||||
'value' => PHP_VERSION,
|
||||
'ok' => version_compare(PHP_VERSION, '8.1', '>='),
|
||||
'hint' => 'Joomla 4/5 requires PHP 8.1+',
|
||||
'ok' => version_compare(PHP_VERSION, '8.3', '>='),
|
||||
'hint' => 'Joomla 6 requires PHP 8.3+',
|
||||
];
|
||||
|
||||
$checks[] = [
|
||||
|
||||
@@ -104,7 +104,7 @@ class DashboardModel extends BaseDatabaseModel
|
||||
// PHP version
|
||||
$checks[] = (object) [
|
||||
'label' => 'PHP Version',
|
||||
'status' => version_compare(PHP_VERSION, '8.1.0', '>='),
|
||||
'status' => version_compare(PHP_VERSION, '8.3.0', '>='),
|
||||
'detail' => PHP_VERSION,
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user