Skip to content
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

Number::binarySuffix() throws exception when intl extension is missing #76

Closed
ghost opened this issue Feb 1, 2016 · 3 comments · Fixed by #78
Closed

Number::binarySuffix() throws exception when intl extension is missing #76

ghost opened this issue Feb 1, 2016 · 3 comments · Fixed by #78

Comments

@ghost
Copy link

ghost commented Feb 1, 2016

 Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("The Symfony\Component\Intl\NumberFormatter\NumberFormatter::__construct() method's argument $style value 0 behavior is not i
mplemented. The available styles are: CURRENCY, DECIMAL..  Please install the "intl" extension for full localization capabilities.") in "AppBundle::bandwidth_usage.html.twig" at line 14." at /var/www/project/vendor/twig/twig/lib/Twig/Template.php line 182 {"exception":"[obj
ect] (Twig_Error_Runtime(code: 0): An exception has been thrown during the rendering of a template (\"The Symfony\\Component\\Intl\\NumberFormatter\\NumberFormatter::__construct() method's argument $style value 0 behavior is not implemented. The available styles are: CURREN
CY, DECIMAL..  Please install the \"intl\" extension for full localization capabilities.\") in \"AppBundle::bandwidth_usage.html.twig\" at line 14. at /var/www/project/vendor/twig/twig/lib/Twig/Template.php:182, Symfony\\Component\\Intl\\Exception\\MethodArgumentValueNotImp
lementedException(code: 0): The Symfony\\Component\\Intl\\NumberFormatter\\NumberFormatter::__construct() method's argument $style value 0 behavior is not implemented. The available styles are: CURRENCY, DECIMAL..  Please install the \"intl\" extension for full localization
 capabilities. at /var/www/project/vendor/symfony/symfony/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php:292)"} []
@norberttech
Copy link
Member

You need to install php intl extension

@ghost
Copy link
Author

ghost commented Feb 1, 2016

I know that installing intl fixes issue; Sorry for lack of explanation.

I just wanted to point out that composer.json does not specify that php-humanizer requires ext-intl but instead requires symfony/intl which is supposed to be replacement for this extension, but it doesn't work with symfony/intl in this case.

in other words - composer installs just fine but lib is throwing exceptions on runtime due to missing dependency.

@norberttech
Copy link
Member

Right, make sense. I think I will just remove symfony/intl dependency or replace it with ext-intl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant