diff --git a/CHANGELOG.md b/CHANGELOG.md index 38317c2..faa8d36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- **BREAKING:** Requires `initphp/parameterbag` `^3.0` (was `^2.0`). Projects that + depend on `initphp/parameterbag` directly must raise their constraint too. - **BREAKING:** Raised the minimum PHP version to 8.2 (`"php": "^8.2"`). The CI matrix now covers PHP 8.2, 8.3, 8.4 and 8.5. - **BREAKING:** The code style moved to PER-CS, enforced by the shared diff --git a/README.md b/README.md index 1cb92ac..3b47974 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ an injectable object or through a static facade. ## Requirements - PHP 8.2 or higher -- [initphp/parameterbag](https://github.com/InitPHP/ParameterBag) `^2.0` +- [initphp/parameterbag](https://github.com/InitPHP/ParameterBag) `^3.0` ## Installation diff --git a/composer.json b/composer.json index 4108dbf..e199439 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "minimum-stability": "stable", "require": { "php": "^8.2", - "initphp/parameterbag": "^2.0" + "initphp/parameterbag": "^3.0" }, "require-dev": { "phpunit/phpunit": "^10.5", diff --git a/docs/Home.md b/docs/Home.md index 1b7377a..8d4c4fc 100644 --- a/docs/Home.md +++ b/docs/Home.md @@ -72,7 +72,7 @@ Config::get('APP.DB.HOST'); // 'localhost' (case-insensitive) - **License**: MIT - **Minimum PHP**: 8.2 (tested on 8.2 – 8.5) -- **Runtime dependencies**: [`initphp/parameterbag`](https://packagist.org/packages/initphp/parameterbag) `^2.0` +- **Runtime dependencies**: [`initphp/parameterbag`](https://packagist.org/packages/initphp/parameterbag) `^3.0` - **Packagist**: [`initphp/config`](https://packagist.org/packages/initphp/config) - **Source**: [github.com/InitPHP/Config](https://github.com/InitPHP/Config) - **Issues**: [github.com/InitPHP/Config/issues](https://github.com/InitPHP/Config/issues) diff --git a/docs/Installation.md b/docs/Installation.md index 875e7dc..75a4b8f 100644 --- a/docs/Installation.md +++ b/docs/Installation.md @@ -6,7 +6,7 @@ | --- | --- | | PHP | `^8.2` (tested on 8.2 – 8.5) | | Extensions | None | -| Runtime dependencies | [`initphp/parameterbag`](https://packagist.org/packages/initphp/parameterbag) `^2.0` | +| Runtime dependencies | [`initphp/parameterbag`](https://packagist.org/packages/initphp/parameterbag) `^3.0` | `initphp/parameterbag` is pulled in automatically by Composer. Development dependencies (PHPUnit, PHPStan, PHP-CS-Fixer) live under `require-dev` and diff --git a/docs/Migration-Guide.md b/docs/Migration-Guide.md index 72539c8..1783cb9 100644 --- a/docs/Migration-Guide.md +++ b/docs/Migration-Guide.md @@ -156,7 +156,7 @@ catch (\InitPHP\Config\Exceptions\ConfigException $e) { /* … */ } ## Upgrade checklist 1. Bump your platform to **PHP 8.2+** (2.x runs on 8.1, but 3.0.0 requires 8.2). -2. `composer require initphp/config:^3.0` (pulls `parameterbag:^2.0`). +2. `composer require initphp/config:^3.0` (pulls `parameterbag:^3.0`). 3. Replace any `new Config()` usage with static `Config::` calls. 4. Audit `setArray(null, …)` / `setFile(null, …)` — they now merge; use `replace()` if you wanted replace-all.