mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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
This commit is contained in:
@@ -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] );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user