diff --git a/.mokogitea/CLAUDE.md b/.mokogitea/CLAUDE.md index f85079e9..96ae2a4d 100644 --- a/.mokogitea/CLAUDE.md +++ b/.mokogitea/CLAUDE.md @@ -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) diff --git a/composer.json b/composer.json index bd363ab3..08b68d15 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "php": ">=8.1", + "php": ">=8.3", "ext-zip": "*", "ext-pdo": "*", "ext-pdo_mysql": "*", diff --git a/source/packages/com_mokosuitebackup/src/Engine/MokoRestore.php b/source/packages/com_mokosuitebackup/src/Engine/MokoRestore.php index 1d06801b..a90c037f 100644 --- a/source/packages/com_mokosuitebackup/src/Engine/MokoRestore.php +++ b/source/packages/com_mokosuitebackup/src/Engine/MokoRestore.php @@ -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[] = [ diff --git a/source/packages/com_mokosuitebackup/src/Model/DashboardModel.php b/source/packages/com_mokosuitebackup/src/Model/DashboardModel.php index 8ad63dfc..7a965cad 100644 --- a/source/packages/com_mokosuitebackup/src/Model/DashboardModel.php +++ b/source/packages/com_mokosuitebackup/src/Model/DashboardModel.php @@ -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, ];