-
Notifications
You must be signed in to change notification settings - Fork 813
[IntlDateFormatter] Add changelog entry about making dateType
and timeType
optional
#2633
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
[IntlDateFormatter] Add changelog entry about making dateType
and timeType
optional
#2633
Conversation
Parameters <parameter>dateType</parameter> and | ||
<parameter>timeType</parameter> are made optional. |
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.
Parameters <parameter>dateType</parameter> and | |
<parameter>timeType</parameter> are made optional. | |
Parameters <parameter>dateType</parameter> and | |
<parameter>timeType</parameter> are now optional. |
Date type to use (<constant>none</constant>, <constant>short</constant>, | ||
<constant>medium</constant>, <constant>long</constant>, | ||
<constant>full</constant>). This is one of the <link | ||
<constant>full</constant>). This is one of the <link | ||
linkend="intl.intldateformatter-constants">IntlDateFormatter | ||
constants</link>. | ||
constants</link>. The default value is <constant>full</constant>. |
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.
Those constants need fixing, as they should actually refer to the class too e.g. <constant>IntlDateFormatter:FULL</constant>
as when I first saw this I was thinking there was a mistake in the usage of the constant
tags instead of literal
...
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.
Updated! Does it make sense to only mention those 5, and not the IntlDateFormatter::RELATIVE_*
ones?
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.
I don't know this extension, but if those are valid options I would say yes.
For the *
you can do something like <constant>IntlDateFormatter::RELATIVE_<replaceable>*</replaceable></constant>
as we determined in the unmerged PR: #1963
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.
That's updated as well with replaceable
👍
2c272f8
to
e2f14b3
Compare
<row> | ||
<entry>5.5.0/PECL 3.0.0</entry> | ||
<entry> |
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.
Actually while you are here the 5.5.0 entry can now be removed as we only document PHP 7.0 upwards
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.
Would it be a good idea to prepare a PR removing changelog entries older than PHP 7.0? I'll take care of it if yes 👍
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.
So currently the manual must document PHP 7 and 8, and should remove information relating to PHP 5.
This is more QA work and I don't know how much I want QA work to happen now as this will impact translations working on catching up with the bug fixes and migration guide/infos that need to be added.
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.
Alright, got it
Date type to use (<constant>none</constant>, <constant>short</constant>, | ||
<constant>medium</constant>, <constant>long</constant>, | ||
<constant>full</constant>). This is one of the <link | ||
<constant>full</constant>). This is one of the <link | ||
linkend="intl.intldateformatter-constants">IntlDateFormatter | ||
constants</link>. | ||
constants</link>. The default value is <constant>full</constant>. |
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.
I don't know this extension, but if those are valid options I would say yes.
For the *
you can do something like <constant>IntlDateFormatter::RELATIVE_<replaceable>*</replaceable></constant>
as we determined in the unmerged PR: #1963
e2f14b3
to
68fe2f8
Compare
Date type to use (<constant>IntlDateFormatter::NONE</constant>, | ||
<constant>IntlDateFormatter::SHORT</constant>, | ||
<constant>IntlDateFormatter::MEDIUM</constant>, | ||
<constant>IntlDateFormatter::LONG</constant>, | ||
<constant>IntlDateFormatter::FULL</constant> and | ||
<constant>IntlDateFormatter::RELATIVE_<replaceable>*</replaceable></constant> | ||
as of PHP 8.0.0). This is one of the <link |
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.
Actually not sure how much of a fan I am of the current phrasing...
Maybe something more like:
Format of the date determined by one of the IntlDateFormatter constants.
By default IntlDateFormatter::FULL.
And just not show a list of formats, as that seems pretty brittle?
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.
Updated, it will be more future-proof 👍
68fe2f8
to
16f6715
Compare
Format of the date determined by one of the <link | ||
linkend="intl.intldateformatter-constants">IntlDateFormatter |
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.
Format of the date determined by one of the <link | |
linkend="intl.intldateformatter-constants">IntlDateFormatter | |
Format of the date determined by one of the | |
<link linkend="intl.intldateformatter-constants">IntlDateFormatter |
The stub generating file doesn't like link tag split up into multiple lines and that always causes weird diffs
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.
Well noted, updated 👍
…timeType` optional
16f6715
to
9c23b0c
Compare
Fix #2425