Closed sebastianfeldmann closed 3 weeks ago
I have no idea to be honest. It does sound strange, but I don't see why Normalizer
. It would more likely be related to PHP-Scoper which didn't always work nicely with polyfills. That said I doubt I can fix that, this is for Box 3.16.0 which is from Feb 14, 2022, the latest is 4.6.2...
oh my bad, missed the major version thingy :/
🤦♂️
I will update an try again and just close this in shame if it works
I show myself out .... sorry 🤦♂️
Bug report
Symfony provides multiple polyfills. One of them is the
ext-intl
one. Symfony configures the autoloader as followsThe
classmap
directory seems to indicate that if theNormalizer
class does not exist it is loaded fromResources/stubs/Normalizer.php
. This does not happen during PHAR execution. If theext-intl
is not available the execution fails with...class Normalizer not found...
. So I would think that the "Box autoloader" does not load theResources/stubs/Normalizer.php
file to make theNormalizer
class available.The original classmap can be checked in the resulting
vendor/composer/autoload_classmap.php
after runningcomposer install
.Current
box.json
To reproduce do the following ⚠️ use a php without
ext-intl
without the int extension this should fail as described in the linked issue on top, with the extension it should work.
Or am I missing something else?