Skip to content

Return value for IntlDatePatternGenerator::getBestPattern is for IntlDateFormatter#5567

Open
ekes wants to merge 1 commit into
php:masterfrom
ekes:patch-1
Open

Return value for IntlDatePatternGenerator::getBestPattern is for IntlDateFormatter#5567
ekes wants to merge 1 commit into
php:masterfrom
ekes:patch-1

Conversation

@ekes
Copy link
Copy Markdown

@ekes ekes commented May 18, 2026

Correcting from suggestion it was a format for DateTime.

…DateFormatter

Correcting from suggestion it was a format for DateTime.
&reftitle.returnvalues;
<para>
Returns a format, accepted by <methodname>DateTimeInterface::format</methodname> on success, &return.falseforfailure;.
Returns a pattern, accepted by <methodname>IntlDateFormatter::create</methodname> on success, &return.falseforfailure;.
Copy link
Copy Markdown
Member

@TimWolla TimWolla May 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Returns a pattern, accepted by <methodname>IntlDateFormatter::create</methodname> on success, &return.falseforfailure;.
Returns a pattern accepted by <classname>IntlDateFormatter</classname> on success, &return.falseforfailure;.

Multiple IntlDateFormatter methods accept a pattern, best to not call out one specifically.

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 this pull request may close these issues.

2 participants