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
This commit is contained in:
Pascal Birchler 2024-05-15 09:05:52 +00:00
parent 560d18d65c
commit 1975c20523

View File

@ -282,16 +282,16 @@ final class WP_Translation_Controller {
*
* @since 6.5.0
*
* @param array{0: string, 1: string} $plurals {
* @param array $plurals {
* Pair of singular and plural translations.
*
* @type string $0 Singular translation.
* @type string $1 Plural translation.
* }
* @param int $number Number of items.
* @param string $context Optional. Context for the string. Default empty string.
* @param string $textdomain Optional. Text domain. Default 'default'.
* @param string $locale Optional. Locale. Default current locale.
* @param int $number Number of items.
* @param string $context Optional. Context for the string. Default empty string.
* @param string $textdomain Optional. Text domain. Default 'default'.
* @param string|null $locale Optional. Locale. Default current locale.
* @return string|false Translation on success, false otherwise.
*/
public function translate_plural( array $plurals, int $number, string $context = '', string $textdomain = 'default', ?string $locale = null ) {