Skip to content

Commit 1975c20

Browse files
committed
Docs: Fix incorrect docblock for WP_Translation_Controller::translate_plural.
Props szepeviktor. See #60699. git-svn-id: https://develop.svn.wordpress.org/trunk@58155 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 560d18d commit 1975c20

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/wp-includes/l10n/class-wp-translation-controller.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,16 +282,16 @@ public function translate( string $text, string $context = '', string $textdomai
282282
*
283283
* @since 6.5.0
284284
*
285-
* @param array{0: string, 1: string} $plurals {
285+
* @param array $plurals {
286286
* Pair of singular and plural translations.
287287
*
288288
* @type string $0 Singular translation.
289289
* @type string $1 Plural translation.
290290
* }
291-
* @param int $number Number of items.
292-
* @param string $context Optional. Context for the string. Default empty string.
293-
* @param string $textdomain Optional. Text domain. Default 'default'.
294-
* @param string $locale Optional. Locale. Default current locale.
291+
* @param int $number Number of items.
292+
* @param string $context Optional. Context for the string. Default empty string.
293+
* @param string $textdomain Optional. Text domain. Default 'default'.
294+
* @param string|null $locale Optional. Locale. Default current locale.
295295
* @return string|false Translation on success, false otherwise.
296296
*/
297297
public function translate_plural( array $plurals, int $number, string $context = '', string $textdomain = 'default', ?string $locale = null ) {

0 commit comments

Comments
 (0)