Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion docs/Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/Migration-Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading