Upgrading symfony/options-resolver 6 to 7
Breakingv6.4.49 → v7.4.22Security1Platform1Deprecated1New1Changed1Fixed5Other1
BreakingUpgrade verdict
A platform requirement change and a security fix.
In plain terms
- You now need PHP 8.2 or newer to install and use this package.
- This version is published as a security release.
- You can no longer set up nested options the old way; use the newer method instead.
Must act 3 items need code or config changes
PHP requirement changed in v7.0.0-BETA1: >=8.1 → >=8.2.
What you must change
Security1
Marks this as a security release.
Platform1
Raises the minimum PHP version to 8.2.
Deprecations to plan for
Deprecated1
Deprecates defining nested options via setDefault(), directing users to setOptions() instead.
setDefault()setOptions()API changes
Generated by DepDelta from published PHP source. Not mixed with prose notes.
- changed:
method OptionsResolver.addAllowedTypes(string $option, string|array $allowedTypes) → method OptionsResolver.addAllowedTypes(string $option, string|array $allowedTypes): static - changed:
method OptionsResolver.addAllowedValues(string $option, mixed $allowedValues) → method OptionsResolver.addAllowedValues(string $option, mixed $allowedValues): static - changed:
method OptionsResolver.setAllowedTypes(string $option, string|array $allowedTypes) → method OptionsResolver.setAllowedTypes(string $option, string|array $allowedTypes): static - changed:
method OptionsResolver.setAllowedValues(string $option, mixed $allowedValues) → method OptionsResolver.setAllowedValues(string $option, mixed $allowedValues): static - changed:
method OptionsResolver.setNormalizer(string $option, \Closure $normalizer) → method OptionsResolver.setNormalizer(string $option, \Closure $normalizer): static - added:
method OptionConfigurator.options(\Closure $nested): static - added:
method OptionsResolver.setOptions(string $option, \Closure $nested): static
- added:
method OptionsResolverIntrospector.getNestedOptions(string $option): array