[DOC-CVS] [doc-en] master: intl: Return value for IntlDatePatternGenerator::getBestPattern is for IntlDateFormatter (#5567)
[email protected] (ekes via GitHub) Sat, 23 May 2026 15:45:46 +0000
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: ekes (ekes) Committer: GitHub (web-flow) Pusher: TimWolla Date: 2026-05-23T17:45:43+02:00 Commit: https://github.com/php/doc-en/commit/5b6663923676dd3f48bdc916a6a2de651fd959b2 Raw diff: https://github.com/php/doc-en/commit/5b6663923676dd3f48bdc916a6a2de651fd959b2.diff intl: Return value for IntlDatePatternGenerator::getBestPattern is for IntlDateFormatter (#5567) * Return value for IntlDatePatternGenerator::getBestPattern is for IntlDateFormatter Correcting from suggestion it was a format for DateTime. * Update reference/intl/intldatepatterngenerator/getbestpattern.xml Co-authored-by: Tim Düsterhus <[email protected]> * Apply suggestions from code review Had to look this up, but yes it's what is being standardized to. Co-authored-by: Louis-Arnaud <[email protected]> * Specify it is a ICU date/time pattern Applying suggestion @lacatoire https://github.com/php/doc-en/pull/5567#discussion_r3272184597 --------- Co-authored-by: Tim Düsterhus <[email protected]> Co-authored-by: Louis-Arnaud <[email protected]> Changed paths: M reference/intl/intldatepatterngenerator/getbestpattern.xml Diff: diff --git a/reference/intl/intldatepatterngenerator/getbestpattern.xml b/reference/intl/intldatepatterngenerator/getbestpattern.xml index 17dd820035ae..83216557e42f 100644 --- a/reference/intl/intldatepatterngenerator/getbestpattern.xml +++ b/reference/intl/intldatepatterngenerator/getbestpattern.xml @@ -32,9 +32,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para> - Returns a format, accepted by <methodname>DateTimeInterface::format</methodname> on success, &return.falseforfailure;. - </para> + <simpara> + Returns an ICU date/time pattern accepted by <classname>IntlDateFormatter</classname> on success, &return.falseforfailure;. + </simpara> </refsect1> <refsect1 role="examples">