From 88bcfb766371a5f9f556fdc614cea652749adbb2 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Fri, 2 Feb 2024 09:05:43 +0000 Subject: [PATCH] I18N: Add type declaration to new method missed in [57518]. See #59656. git-svn-id: https://develop.svn.wordpress.org/trunk@57519 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/l10n/class-wp-translation-file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/l10n/class-wp-translation-file.php b/src/wp-includes/l10n/class-wp-translation-file.php index e6dbdb85be..e550f9c2f0 100644 --- a/src/wp-includes/l10n/class-wp-translation-file.php +++ b/src/wp-includes/l10n/class-wp-translation-file.php @@ -247,7 +247,7 @@ abstract class WP_Translation_File { * @param string $header Plural-Forms header string. * @return string Plural forms expression. */ - protected function get_plural_expression_from_header( $header ) { + protected function get_plural_expression_from_header( string $header ): string { if ( preg_match( '/^\s*nplurals\s*=\s*(\d+)\s*;\s+plural\s*=\s*(.+)$/', $header, $matches ) ) { return trim( $matches[2] ); }