Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

jschaedl
Copy link
Contributor

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 -

}

$a += array(
Caster::PREFIX_VIRTUAL.'time_zone' => $c->getTimeZone(),
Copy link
Member

@nicolas-grekas nicolas-grekas Sep 23, 2018

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)

@jschaedl jschaedl force-pushed the vd-caster-intl_date_formatter branch from f004d68 to 8bf4816 Compare September 23, 2018 16:09
@nicolas-grekas nicolas-grekas force-pushed the vd-caster-intl_date_formatter branch from 8bf4816 to ae76c68 Compare September 23, 2018 16:25
@nicolas-grekas
Copy link
Member

Thank you @jschaedl.

@nicolas-grekas nicolas-grekas merged commit ae76c68 into symfony:master Sep 23, 2018
nicolas-grekas added a commit that referenced this pull request Sep 23, 2018
…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
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.2 Nov 1, 2018
This was referenced Nov 3, 2018
@jschaedl jschaedl deleted the vd-caster-intl_date_formatter branch February 23, 2020 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants