Repository navigation
v5.10.0
Requires PHP 8.2+ and Psalm 7.0+. On PHP 8.1 or a Psalm 7 release candidate, Composer keeps 5.9.2.
New
- Signatures of
#[AutowireCallable],#[AutowireMethodOf]and#[AutowireServiceClosure]closures, checks of their targets (newInvalidAutowireCallableissue), and bound methods marked as used (#418) - Service types from
#[AutowireLocator]maps and service subscribers, withServiceNotFoundfor unknown keys (#419, #434) #[Required]properties are notPropertyNotSetInConstructor(#435, superseding #142)- Stubs for Symfony 8 (#432)
Fixed
- Twig: extensions with optional constructor arguments, like the Symfony bridge's
TranslationExtension,StopwatchExtensionandSecurityExtension, are used again (#437, fixes #428) - Twig cache analyzer: matches templates compiled by Twig 3 on PHP 8.1+ (#383) and follows output of templates compiled to generators (#431)
InputBag::get(): values and defaults may be null or any scalar, as Symfony declares (#376)- Forms:
AbstractTypehooks keep the form data type on Symfony 6.4/7.4, andFormView::$varsis typed (#436, superseding #329 and #271) - Forms:
PreSubmitEventdata ismixed: it is the submitted data, a string or null for simple fields (#439). Listeners now need to check it before use.
Thanks
- @nicolas-grekas for the autowiring inference (#418, #419)
- @mbaschnitzi (#376), @gbprod (#383) and @d-mitrofanov-v (#379) for their PRs
- @zmitic, @mpdude and @Punk-UnDeaD, whose PRs #329, #271 and #142 are in this release
- @aszenz and @ThomasLandauer for the precise bug reports (#426, #428). The fix for #426 (memory used by many calls of one macro) follows in 5.10.1.
Full Changelog: v5.9.2...v5.10.0