-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Filesystem hard-depends on ext-mbstring polyfill that may not be required #60444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have a look at https://php.watch/articles/composer-replace-polyfills since your environment provides |
Yep, this is what I did 👍🏻 |
Nothing to do here I think as requiring polyfills provide a smooth experience when those extensions are missing, they do nothing when the extensions are present, and can be avoided as said above. |
I had no problem with the (unncessary) polyfill being present until it started requiring iconv. Is there not a way to have Composer understand that the polyfill isn't needed, automatically? |
Looking at the error it seems that you generated the |
closing as explained, thank you for understanding |
Symfony version(s) affected
6.4.13
Description
symfony/src/Symfony/Component/Filesystem/composer.json
Line 21 in 94f4d7a
This dependency pulls in
symfony/polyfill-mbstring
even whenext-mbstring
is already present.Until recently, this was fine (the polyfill was just dead weight), but
polyfill-mbstring
recently added a hard dependency toext-iconv
which is not typically present in my application's environment. However,ext-mbstring
is available. So my CI suddenly started having issues withext-iconv
being required by a polyfill which my environment doesn't actually call for anyway.How to reproduce
ext-mbstring
but notext-iconv
symfony/filesystem
using ComposerPossible Solution
Depend on
ext-mbstring
insymfony/filesystem
instead ofsymfony/polyfill-mbstring
.symfony/polyfill-mbstring
alreadyprovide
sext-mbstring
anyway so this should be fine.Additional Context
No response
The text was updated successfully, but these errors were encountered: