bug #21831 [Yaml] Fix legacy support for omitting mapping key (ogizanagi)
bug #21831 [Yaml] Fix legacy support for omitting mapping key (ogizanagi)

This PR was merged into the 3.3-dev branch.

Discussion
----------

[Yaml] Fix legacy support for omitting mapping key

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

Quick and dirty fix for the failing legacy `InlineTest::testOmittedMappingKeyIsParsedAsColon()` test (failing since https://github.com/symfony/symfony/pull/21118).

Ping @xabbuh : I'm not used to the yaml component codebase and it's probably not the most pleasant one to read. 😄 So if you think there is a cleaner way to go, please just close this one in favor of yours.

Commits
-------

d246f2f [Yaml] Fix legacy support for omitting mapping key

WhiteEagle88/symfony,lstrojny/symfony,localheinz/symfony,andreia/symfony,DavidGarciaCat/symfony,Slamdunk/symfony,xabbuh/symfony,Slamdunk/symfony,shieldo/symfony,hason/symfony,Deamon/symfony,damienalexandre/symfony,shieldo/symfony,aeoris/symfony,maidmaid/symfony,ro0NL/symfony,maidmaid/symfony,pyrech/symfony,klandaika/symfony,michaelperrin/symfony,gencer/symfony,jakzal/symfony,mnapoli/symfony,Einenlum/symfony,mnapoli/symfony,pamil/symfony,Simperfit/symfony,sstok/symfony,docteurklein/symfony,Koc/symfony,dzuelke/symfony,hhamon/symfony,dzuelke/symfony,Tobion/symfony,Triiistan/symfony,d-ph/symfony,michaelperrin/symfony,okdana/symfony,pierredup/symfony,Amo/symfony,lyrixx/symfony,yceruto/symfony,backbone87/symfony,curry684/symfony,sgehrig/symfony,okdana/symfony,c960657/symfony,damienalexandre/symfony,d-ph/symfony,Simperfit/symfony,iltar/symfony,hacfi/symfony,smatyas/symfony,teohhanhui/symfony,Slamdunk/symfony,symfony/symfony,xabbuh/symfony,mweimerskirch/symfony,hhamon/symfony,ro0NL/symfony,lyrixx/symfony,garak/symfony,backbone87/symfony,gimler/symfony,lepiaf/symfony,docteurklein/symfony,Tobion/symfony,jvasseur/symfony,kbond/symfony,aeoris/symfony,oleg-andreyev/symfony,Aliance/symfony,jean-gui/symfony,arjenm/symfony,jakzal/symfony,josephdpurcell/symfony,zorn-v/symfony,gnat42/symfony,curry684/symfony,ajgarlag/symfony,fabpot/symfony,mweimerskirch/symfony,Triiistan/symfony,dzuelke/symfony,voronkovich/symfony,oleg-andreyev/symfony,weaverryan/symfony,arjenm/symfony,Koc/symfony,ragboyjr/symfony,ragboyjr/symfony,klandaika/symfony,backbone87/symfony,dunglas/symfony,klandaika/symfony,pyrech/symfony,andrerom/symfony,nasimnabavi/symfony,gonzalovilaseca/symfony,andrerom/symfony,gnat42/symfony,sstok/symfony,voronkovich/symfony,OskarStark/symfony,sroze/symfony,Pierstoval/symfony,joelwurtz/symfony,yceruto/symfony,Pierstoval/symfony,paradajozsef/symfony,smatyas/symfony,weaverryan/symfony,chalasr/symfony,OskarStark/symfony,andreia/symfony,sstok/symfony,localheinz/symfony,apetitpa/symfony,hacfi/symfony,dmaicher/symfony,oleg-andreyev/symfony,phramz/symfony,teohhanhui/symfony,ro0NL/symfony,yceruto/symfony,paradajozsef/symfony,jean-gui/symfony,fabpot/symfony,ogizanagi/symfony,shieldo/symfony,MatTheCat/symfony,zorn-v/symfony,smatyas/symfony,aeoris/symfony,MatTheCat/symfony,mnapoli/symfony,jderusse/symfony,dmaicher/symfony,smatyas/symfony,shieldo/symfony,pamil/symfony,DavidGarciaCat/symfony,codeclimate-testing/symfony,pamil/symfony,xabbuh/symfony,Taluu/symfony,andreia/symfony,Slamdunk/symfony,pamil/symfony,Engerim/symfony,gonzalovilaseca/symfony,c960657/symfony,gimler/symfony,jakzal/symfony,d-ph/symfony,romaricdrigon/symfony,localheinz/symfony,Nyholm/symfony,fabpot/symfony,HeahDude/symfony,Taluu/symfony,1ed/symfony,klandaika/symfony,zorn-v/symfony,vincentaubert/symfony,pyrech/symfony,stof/symfony,Deamon/symfony,docteurklein/symfony,ragboyjr/symfony,mnapoli/symfony,gimler/symfony,Tobion/symfony,ogizanagi/symfony,gonzalovilaseca/symfony,Pierstoval/symfony,lstrojny/symfony,c960657/symfony,dzuelke/symfony,HeahDude/symfony,phramz/symfony,smatyas/symfony,jzawadzki/symfony,neemzy/symfony,hason/symfony,lepiaf/symfony,klandaika/symfony,phramz/symfony,OskarStark/symfony,jzawadzki/symfony,tucksaun/symfony,e-moe/symfony,zcodes/symfony,pyrech/symfony,nicolas-grekas/symfony,sroze/symfony,jvasseur/symfony,tucksaun/symfony,neemzy/symfony,tgalopin/symfony,docteurklein/symfony,oleg-andreyev/symfony,Simperfit/symfony,zcodes/symfony,Aliance/symfony,joelwurtz/symfony,ogizanagi/symfony,Einenlum/symfony,hhamon/symfony,bendavies/symfony,gencer/symfony,arjenm/symfony,jderusse/symfony,Deamon/symfony,teohhanhui/symfony,sgehrig/symfony,mweimerskirch/symfony,kbond/symfony,MatTheCat/symfony,Strate/symfony,alekitto/symfony,andrerom/symfony,symfony/symfony,alekitto/symfony,andreia/symfony,fabpot/symfony,sstok/symfony,symfony/symfony,dmaicher/symfony,Tobion/symfony,derrabus/symfony,joelwurtz/symfony,maidmaid/symfony,bendavies/symfony,josephdpurcell/symfony,Amo/symfony,e-moe/symfony,mpdude/symfony,hacfi/symfony,zcodes/symfony,codeclimate-testing/symfony,1ed/symfony,alekitto/symfony,derrabus/symfony,gnat42/symfony,Taluu/symfony,Amo/symfony,bendavies/symfony,jvasseur/symfony,mpdude/symfony,nasimnabavi/symfony,garak/symfony,tucksaun/symfony,frankdejonge/symfony,frankdejonge/symfony,Strate/symfony,Pierstoval/symfony,vincentaubert/symfony,ragboyjr/symfony,Taluu/symfony,pierredup/symfony,Koc/symfony,dzuelke/symfony,michaelperrin/symfony,neemzy/symfony,hhamon/symfony,Nyholm/symfony,codeclimate-testing/symfony,iltar/symfony,gnat42/symfony,frankdejonge/symfony,stof/symfony,nicolas-grekas/symfony,csarrazi/symfony,phramz/symfony,chalasr/symfony,damienalexandre/symfony,ogizanagi/symfony,deguif/symfony,okdana/symfony,Amo/symfony,iltar/symfony,apetitpa/symfony,weaverryan/symfony,OskarStark/symfony,curry684/symfony,ajgarlag/symfony,nicolas-grekas/symfony,gonzalovilaseca/symfony,lyrixx/symfony,MatTheCat/symfony,jderusse/symfony,Triiistan/symfony,e-moe/symfony,mweimerskirch/symfony,dunglas/symfony,deguif/symfony,paradajozsef/symfony,gimler/symfony,apetitpa/symfony,nasimnabavi/symfony,Einenlum/symfony,Engerim/symfony,sgehrig/symfony,sroze/symfony,DavidGarciaCat/symfony,tgalopin/symfony,d-ph/symfony,mnapoli/symfony,tgalopin/symfony,curry684/symfony,arjenm/symfony,localheinz/symfony,voronkovich/symfony,ajgarlag/symfony,romaricdrigon/symfony,chalasr/symfony,derrabus/symfony,zerkms/symfony,zerkms/symfony,yceruto/symfony,chalasr/symfony,tucksaun/symfony,deguif/symfony,Deamon/symfony,Engerim/symfony,jean-gui/symfony,csarrazi/symfony,dunglas/symfony,michaelperrin/symfony,bendavies/symfony,ajgarlag/symfony,sroze/symfony,apetitpa/symfony,alekitto/symfony,symfony/symfony,deguif/symfony,stof/symfony,romaricdrigon/symfony,docteurklein/symfony,josephdpurcell/symfony,kbond/symfony,frankdejonge/symfony,stof/symfony,weaverryan/symfony,Nyholm/symfony,mweimerskirch/symfony,Triiistan/symfony,Deamon/symfony,Simperfit/symfony,jvasseur/symfony,pierredup/symfony,codeclimate-testing/symfony,csarrazi/symfony,1ed/symfony,Triiistan/symfony,tgalopin/symfony,kbond/symfony,mpdude/symfony,Nyholm/symfony,garak/symfony,maidmaid/symfony,ro0NL/symfony,Koc/symfony,derrabus/symfony,WhiteEagle88/symfony,zorn-v/symfony,xabbuh/symfony,iltar/symfony,HeahDude/symfony,1ed/symfony,c960657/symfony,jean-gui/symfony,garak/symfony,Einenlum/symfony,zcodes/symfony,sgehrig/symfony,zerkms/symfony,gencer/symfony,paradajozsef/symfony,WhiteEagle88/symfony,pierredup/symfony,sstok/symfony,romaricdrigon/symfony,e-moe/symfony,voronkovich/symfony,lepiaf/symfony,vincentaubert/symfony,HeahDude/symfony,nicolas-grekas/symfony,nasimnabavi/symfony,zerkms/symfony,lyrixx/symfony,vincentaubert/symfony,hason/symfony,dmaicher/symfony,andrerom/symfony,Aliance/symfony,lstrojny/symfony,joelwurtz/symfony,Simperfit/symfony,jakzal/symfony,damienalexandre/symfony,teohhanhui/symfony,Amo/symfony,jzawadzki/symfony,jderusse/symfony,mpdude/symfony,Strate/symfony