Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[VarDumper] add casters for IntlDateFormatter and IntlCalendar#28566
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
[VarDumper] add casters for IntlDateFormatter and IntlCalendar#28566
Uh oh!
There was an error while loading.Please reload this page.
Conversation
jschaedl commentedSep 23, 2018
| Q | A |
|---|---|
| Branch? | master |
| Bug fix? | no |
| New feature? | yes |
| BC breaks? | no |
| Deprecations? | no |
| Tests pass? | yes |
| Fixed tickets | #28554 |
| License | MIT |
| Doc PR | - |
cbe0913 to24b69b3Compare| } | ||
| $a +=array( | ||
| Caster::PREFIX_VIRTUAL.'time_zone' =>$c->getTimeZone(), |
nicolas-grekasSep 23, 2018 • 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
you're going to be an expert in writing casters :)
here, I'd suggest removing the previous "if" and replace it with this in the big array above:Caster::PREFIX_VIRTUAL.'time_zone' => ($filter & Caster::EXCLUDE_VERBOSE) ? new CutStub($c->getTimeZone()) : $c->getTimeZone()
(same below)
f004d68 to8bf4816Compare8bf4816 toae76c68Comparenicolas-grekas commentedSep 23, 2018
Thank you@jschaedl. |
…Calendar (jschaedl)This PR was squashed before being merged into the 4.2-dev branch (closes#28566).Discussion----------[VarDumper] add casters for IntlDateFormatter and IntlCalendar| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#28554| License | MIT| Doc PR | -Commits-------ae76c68 [VarDumper] add casters for IntlDateFormatter and IntlCalendar