Symfony 7.2 is a minor release. According to the Symfony release process, there should be no significant
backward compatibility breaks. Minor backward compatibility breaks are prefixed in this document with
[BC BREAK], make sure your code is compatible with these entries before upgrading.
Read more about this in the Symfony documentation.
If you're upgrading from a version below 7.1, follow the 7.1 upgrade guide first.
igbinary_serialize()is not used by default when the igbinary extension is installed- Deprecate making
cache.appadapter taggable, use thecache.app.taggableadapter instead
- [BC BREAK] Add
--silentglobal option to enable the silent verbosity mode (suppressing all output, including errors) If a custom command defines thesilentoption, it must be renamed before upgrading. - Add
isSilent()method toOutputInterface
- Deprecate
!taggedtag, use!tagged_iteratorinstead
- Deprecate the
VersionAwareTesttrait, use feature detection instead
- [BC BREAK] The
secrets:decrypt-to-localcommand terminates with a non-zero exit code when a secret could not be read - Deprecate
session.sid_lengthandsession.sid_bits_per_characterconfig options
- Deprecate passing
referer_check,use_only_cookies,use_trans_sid,trans_sid_hosts,trans_sid_tags,sid_bits_per_characterandsid_lengthoptions toNativeSessionStorage
- Add methods for
saslBind()andwhoami()toConnectionInterfaceandLdapInterface - Deprecate the
sizeLimitoption ofAbstractQuery
-
Deprecate
TransportFactoryTestCase, extendAbstractTransportFactoryTestCaseinsteadThe
testIncompleteDsnException()test is no longer provided by default. If you make use of it by implementing theincompleteDsnProvider()data providers, you now need to use theIncompleteDsnTestTrait.
- Add
getRetryDelay()method toRecoverableExceptionInterface
-
Deprecate
TransportFactoryTestCase, extendAbstractTransportFactoryTestCaseinsteadThe
testIncompleteDsnException()andtestMissingRequiredOptionException()tests are no longer provided by default. If you make use of them (i.e. by implementing theincompleteDsnProvider()ormissingRequiredOptionProvider()data providers), you now need to use theIncompleteDsnTestTraitorMissingRequiredOptionTestTraitrespectively.
- Add
$tokenargument toUserCheckerInterface::checkPostAuth() - Deprecate argument
$secretofRememberMeTokenandRememberMeAuthenticator - Deprecate passing an empty string as
$userIdentifierargument toUserBadgeconstructor - Deprecate returning an empty string in
UserInterface::getUserIdentifier()
- Deprecate the
csv_escape_charcontext option ofCsvEncoderand theCsvEncoder::ESCAPE_CHAR_KEYconstant - Deprecate
CsvEncoderContextBuilder::withEscapeChar()method - Deprecate
AdvancedNameConverterInterface, useNameConverterInterfaceinstead
truncatemethod now also acceptTruncateModeenum instead of a boolean:TruncateMode::Charis equivalent totruevalue ;TruncateMode::WordAfteris equivalent tofalsevalue ;TruncateMode::WordBeforeis a new mode that will cut the sentence on the last word before the limit is reached.
-
Deprecate
ProviderFactoryTestCase, extendAbstractTransportFactoryTestCaseinsteadThe
testIncompleteDsnException()test is no longer provided by default. If you make use of it by implementing theincompleteDsnProvider()data providers, you now need to use theIncompleteDsnTestTrait. -
Deprecate passing an escape character to
CsvFileLoader::setCsvControl()
- Deprecate passing a tag to the constructor of
FormThemeNode
- [BC BREAK]
RequestParserInterface::parse()return type changed from?RemoteEventtoRemoteEvent|array<RemoteEvent>|null. Classes already implementing this interface are unaffected but consumers of this method will need to be updated to handle the new return type. Projects relying on theWebhookControllerof the component are not affected by the BC break
- Deprecate parsing duplicate mapping keys whose value is
null