Skip to content

v5.10.0

Choose a tag to compare

@alies-dev alies-dev released this 04 Nov 00:18
7e65cfa

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 (new InvalidAutowireCallable issue), and bound methods marked as used (#418)
  • Service types from #[AutowireLocator] maps and service subscribers, with ServiceNotFound for unknown keys (#419, #434)
  • #[Required] properties are not PropertyNotSetInConstructor (#435, superseding #142)
  • Stubs for Symfony 8 (#432)

Fixed

  • Twig: extensions with optional constructor arguments, like the Symfony bridge's TranslationExtension, StopwatchExtension and SecurityExtension, 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: AbstractType hooks keep the form data type on Symfony 6.4/7.4, and FormView::$vars is typed (#436, superseding #329 and #271)
  • Forms: PreSubmitEvent data is mixed: it is the submitted data, a string or null for simple fields (#439). Listeners now need to check it before use.

Thanks

Full Changelog: v5.9.2...v5.10.0