Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Fixes the calendar in constructor to handle null#19751
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
wakqasahmed commentedAug 26, 2016 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Test Details: BEFORE Testing Symfony\Component\Intl\Tests\DateFormatter\IntlDateFormatterTest Time: 49 ms, Memory: 4.50MB There was 1 error:
/Users/waqasahmed/Desktop/symfony-2.7/src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php:153 FAILURES! AFTER $ php ./phpunit --filter testConstructorWithoutCalendar IntlDateFormatterTest src/Symfony/Component/Intl/Tests/DateFormatter/IntlDateFormatterTest.php Testing Symfony\Component\Intl\Tests\DateFormatter\IntlDateFormatterTest Time: 45 ms, Memory: 4.25MB OK (1 test, 1 assertion) |
Tobion commentedAug 27, 2016
LGTM 👍 as it's in line withhttp://php.net/manual/en/intldateformatter.create.php |
HeahDude commentedAug 27, 2016
👍 Status: reviewed |
fabpot commentedAug 27, 2016
Thank you@wakqasahmed. |
…med)This PR was merged into the 2.7 branch.Discussion----------Fixes the calendar in constructor to handle null| Q | A| ------------- | ---| Branch? | 2.7| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#19688| License | MIT| Doc PR | noneFix the calendar exception to handle null, error was raised while exporting from akeneoThe Symfony\Component\Intl\DateFormatter\IntlDateFormatter::__construct() method's argument $calendar value NULL behavior is not implemented. Only the GREGORIAN calendar is supported. Please install the "intl" extension for full localization capabilities.https://cloud.githubusercontent.com/assets/4486133/17287404/81f951cc-57e0-11e6-9f6f-e231bbf00bf4.pngCommits-------43f2672 Fixes the calendar in constructor to handle null
Uh oh!
There was an error while loading.Please reload this page.
Fix the calendar exception to handle null, error was raised while exporting from akeneo
The Symfony\Component\Intl\DateFormatter\IntlDateFormatter::__construct() method's argument $calendar value NULL behavior is not implemented. Only the GREGORIAN calendar is supported. Please install the "intl" extension for full localization capabilities.
https://cloud.githubusercontent.com/assets/4486133/17287404/81f951cc-57e0-11e6-9f6f-e231bbf00bf4.png