bug #35025 [HttpClient][Psr18Client] Remove Psr18ExceptionTrait (fancyweb)
bug #35025 [HttpClient][Psr18Client] Remove Psr18ExceptionTrait (fancyweb)

This PR was merged into the 4.3 branch.

Discussion
----------

[HttpClient][Psr18Client] Remove Psr18ExceptionTrait

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Interesting case. Declared trait are instantly loaded by PHP. When ClassExistenceResource fails to load this class because of a thrown \LogicException (when a dependency is missing, cf the top of this class) the trait is loaded. Then, to display the exception, this class is reaccessed (I guess by the duplicated request 🤔) and it results in a fatal error "Cannot redeclare trait...". Basically ClassExistenceResource does not support this kind of structure (thrown exception + trait). Let's do the easy fix first, and then revert if someone finds a fix for the root problem?

Commits
-------

c1746d8b14 [HttpClient][Psr18Client] Remove Psr18ExceptionTrait

symfony/symfony,jakzal/symfony,d-ph/symfony,damienalexandre/symfony,jderusse/symfony,derrabus/symfony,1ed/symfony,dmaicher/symfony,fabpot/symfony,d-ph/symfony,tgalopin/symfony,Simperfit/symfony,fabpot/symfony,HeahDude/symfony,Deamon/symfony,zorn-v/symfony,maidmaid/symfony,HeahDude/symfony,phramz/symfony,Nyholm/symfony,maidmaid/symfony,mweimerskirch/symfony,OskarStark/symfony,localheinz/symfony,Deamon/symfony,nicolas-grekas/symfony,paradajozsef/symfony,chalasr/symfony,voronkovich/symfony,ro0NL/symfony,d-ph/symfony,mpdude/symfony,ragboyjr/symfony,Simperfit/symfony,derrabus/symfony,xabbuh/symfony,hhamon/symfony,OskarStark/symfony,mnapoli/symfony,jderusse/symfony,lyrixx/symfony,Slamdunk/symfony,derrabus/symfony,paradajozsef/symfony,pyrech/symfony,MatTheCat/symfony,mweimerskirch/symfony,tucksaun/symfony,mpdude/symfony,Koc/symfony,pyrech/symfony,pierredup/symfony,lstrojny/symfony,lstrojny/symfony,curry684/symfony,jakzal/symfony,smatyas/symfony,shieldo/symfony,jakzal/symfony,phramz/symfony,smatyas/symfony,kbond/symfony,smatyas/symfony,oleg-andreyev/symfony,pierredup/symfony,fabpot/symfony,garak/symfony,zorn-v/symfony,curry684/symfony,jakzal/symfony,lyrixx/symfony,shieldo/symfony,sgehrig/symfony,pyrech/symfony,tucksaun/symfony,shieldo/symfony,ragboyjr/symfony,xabbuh/symfony,phramz/symfony,Deamon/symfony,MatTheCat/symfony,mnapoli/symfony,fabpot/symfony,lyrixx/symfony,symfony/symfony,Deamon/symfony,sgehrig/symfony,Simperfit/symfony,derrabus/symfony,MatTheCat/symfony,lstrojny/symfony,sgehrig/symfony,alekitto/symfony,smatyas/symfony,pyrech/symfony,tucksaun/symfony,Koc/symfony,mpdude/symfony,paradajozsef/symfony,alekitto/symfony,tucksaun/symfony,shieldo/symfony,pierredup/symfony,dmaicher/symfony,Tobion/symfony,kbond/symfony,voronkovich/symfony,tgalopin/symfony,kbond/symfony,ro0NL/symfony,garak/symfony,jvasseur/symfony,Nyholm/symfony,Slamdunk/symfony,bendavies/symfony,oleg-andreyev/symfony,Taluu/symfony,zerkms/symfony,zorn-v/symfony,Koc/symfony,mnapoli/symfony,chalasr/symfony,mnapoli/symfony,Tobion/symfony,mpdude/symfony,chalasr/symfony,jvasseur/symfony,stof/symfony,HeahDude/symfony,bendavies/symfony,Tobion/symfony,localheinz/symfony,curry684/symfony,jvasseur/symfony,symfony/symfony,phramz/symfony,ragboyjr/symfony,zorn-v/symfony,Nyholm/symfony,oleg-andreyev/symfony,damienalexandre/symfony,1ed/symfony,oleg-andreyev/symfony,smatyas/symfony,gonzalovilaseca/symfony,mweimerskirch/symfony,Slamdunk/symfony,jvasseur/symfony,garak/symfony,sgehrig/symfony,chalasr/symfony,ro0NL/symfony,gonzalovilaseca/symfony,Taluu/symfony,zerkms/symfony,bendavies/symfony,ogizanagi/symfony,pierredup/symfony,OskarStark/symfony,MatTheCat/symfony,jderusse/symfony,ogizanagi/symfony,zerkms/symfony,Nyholm/symfony,localheinz/symfony,1ed/symfony,OskarStark/symfony,kbond/symfony,ragboyjr/symfony,nicolas-grekas/symfony,lyrixx/symfony,garak/symfony,tgalopin/symfony,mweimerskirch/symfony,dmaicher/symfony,damienalexandre/symfony,stof/symfony,alekitto/symfony,voronkovich/symfony,hhamon/symfony,HeahDude/symfony,Deamon/symfony,dmaicher/symfony,Slamdunk/symfony,gonzalovilaseca/symfony,mnapoli/symfony,stof/symfony,ogizanagi/symfony,hhamon/symfony,gonzalovilaseca/symfony,Koc/symfony,jderusse/symfony,tgalopin/symfony,stof/symfony,Simperfit/symfony,alekitto/symfony,Taluu/symfony,Tobion/symfony,xabbuh/symfony,paradajozsef/symfony,1ed/symfony,maidmaid/symfony,nicolas-grekas/symfony,ro0NL/symfony,zerkms/symfony,xabbuh/symfony,bendavies/symfony,Taluu/symfony,curry684/symfony,damienalexandre/symfony,maidmaid/symfony,Simperfit/symfony,voronkovich/symfony,ogizanagi/symfony,nicolas-grekas/symfony,localheinz/symfony,d-ph/symfony,mweimerskirch/symfony,symfony/symfony,hhamon/symfony