Make WordPress Core


Ignore:
Timestamp:
02/02/2024 09:05:43 AM (10 months ago)
Author:
swissspidy
Message:

I18N: Add type declaration to new method missed in [57518].

See #59656.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/l10n/class-wp-translation-file.php

    r57518 r57519  
    248248     * @return string Plural forms expression.
    249249     */
    250     protected function get_plural_expression_from_header( $header ) {
     250    protected function get_plural_expression_from_header( string $header ): string {
    251251        if ( preg_match( '/^\s*nplurals\s*=\s*(\d+)\s*;\s+plural\s*=\s*(.+)$/', $header, $matches ) ) {
    252252            return trim( $matches[2] );
Note: See TracChangeset for help on using the changeset viewer.