Commit 0ed9434b57 for wordpress.org
commit 0ed9434b575a4d276229bc7ab33f294b63be9b96
Author: lancewillett <lancewillett@git.wordpress.org>
Date: Sun Nov 1 19:20:47 2026 +0000
I18N: Correct the documented return type of translation entries.
Document `WP_Translation_File::entries()` as returning string values rather than arrays of strings. Remove the three PHPStan baseline suppressions resolved by this correction.
Developed in: https://github.com/WordPress/wordpress-develop/pull/15330
Props abcd95.
See #65817.
Built from https://develop.svn.wordpress.org/trunk@65182
git-svn-id: http://core.svn.wordpress.org/trunk@64331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/l10n/class-wp-translation-file.php b/wp-includes/l10n/class-wp-translation-file.php
index 199fdca4ab..336b3a7814 100644
--- a/wp-includes/l10n/class-wp-translation-file.php
+++ b/wp-includes/l10n/class-wp-translation-file.php
@@ -158,7 +158,7 @@ abstract class WP_Translation_File {
*
* @since 6.5.0
*
- * @return array<string, string[]> Entries.
+ * @return array<string, string> Entries.
*/
public function entries(): array {
if ( ! $this->parsed ) {
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 6c0845c356..cdd2d214a6 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-beta3-65181';
+$wp_version = '7.2-beta3-65182';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.