You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Maintain PHP 7.4 compatibility with union types in PHPDoc only
Use union types (string|int|float|bool|null) in PHPDoc for better
IDE support and documentation, but keep code compatible with PHP 7.4+
by not using union types in actual code signatures.
This provides the best of both worlds:
- Compatible with PHP 7.4+ (no breaking changes)
- Better IDE autocompletion and type checking
- More specific than generic 'mixed' type
Copy file name to clipboardExpand all lines: docs/UPGRADING.md
+40-1Lines changed: 40 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,46 @@ This guide will help you upgrade Composer Update Helper to newer versions.
18
18
19
19
## Version-Specific Upgrade Notes
20
20
21
-
### Upgrading to 2.0.22+ (Unreleased)
21
+
### Upgrading to 2.0.23+
22
+
23
+
#### What's New
24
+
This release adds command-line options configuration in YAML and extends wildcard dependency checking. See [CHANGELOG.md](CHANGELOG.md#2023) for complete details.
25
+
26
+
**New Features:**
27
+
-**Command-line options configuration in YAML**: Configure default values for all command-line options in `generate-composer-require.yaml`
28
+
- Set your preferred defaults once, then override them when needed via command-line arguments
29
+
- Available options: `show-release-info`, `show-release-detail`, `show-impact-analysis`, `save-impact-to-file`, `verbose`, `debug`
30
+
- Example: Set `show-release-info: true` in YAML to always show release info by default
- See [Configuration Guide](docs/CONFIGURATION.md#command-line-options-configuration) for complete details
33
+
-**Wildcard Dependency Checking**: Extended dependency conflict detection to support wildcard constraints (`^`, `~`, `*`)
34
+
- Previously, dependency checking was skipped for packages with wildcard constraints
35
+
- Now properly validates wildcard constraints against dependent package requirements
36
+
- Improves conflict detection accuracy for framework constraints and version ranges
37
+
38
+
**Changed:**
39
+
-**Improved type hints**: Better type safety with union types in PHPDoc for `ConfigLoader::readConfigValue()`
40
+
- PHPDoc uses `string|int|float|bool|null` union types for better IDE support
41
+
- Code remains compatible with PHP 7.4+ (union types only in documentation)
42
+
- More specific than generic `mixed` type
43
+
44
+
#### Migration Notes
45
+
-**No action required**: These are new features that enhance existing functionality
46
+
-**YAML configuration for command-line options** (optional): You can now set default values for command-line options in your `generate-composer-require.yaml`:
47
+
```yaml
48
+
# Set defaults for command-line options
49
+
show-release-info: true # Always show release info by default
50
+
show-impact-analysis: true # Always show impact analysis by default
51
+
verbose: false # Don't show verbose output by default
- Example: If you set `show-release-info: true` in YAML but run `./generate-composer-require.sh --no-release-info`, release info will be disabled for that run
55
+
- **Wildcard dependency checking**: Now works automatically for all constraint types (`^`, `~`, `*`). No configuration needed.
56
+
57
+
#### Breaking Changes
58
+
- None
59
+
60
+
### Upgrading to 2.0.22+
22
61
23
62
#### What's New
24
63
This release adds several new features to help resolve dependency conflicts and provide better guidance when automatic solutions aren't available. See [CHANGELOG.md](CHANGELOG.md#unreleased) for complete details.
0 commit comments