Commit c28122f285 for wordpress.org
commit c28122f28530838546b482d31bd40db8f8785f85
Author: John Blackbourn <johnbillion@git.wordpress.org>
Date: Wed Jan 21 12:15:33 2026 +0000
Docs: Remove redundant syntax from callable type declarations.
The parameter name is optional in PHPStan but not supported by Psalm. While neither tools are officially supported, this removes the parse error that Psalm users otherwise see.
See https://github.com/php-stubs/wordpress-stubs/issues/410 for some external discussion.
Props farhad0, marian1
See #64224
Built from https://develop.svn.wordpress.org/trunk@61505
git-svn-id: http://core.svn.wordpress.org/trunk@60816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/abilities-api/class-wp-ability.php b/wp-includes/abilities-api/class-wp-ability.php
index 4fa757e55d..967f164115 100644
--- a/wp-includes/abilities-api/class-wp-ability.php
+++ b/wp-includes/abilities-api/class-wp-ability.php
@@ -103,7 +103,7 @@ class WP_Ability {
* The ability execute callback.
*
* @since 6.9.0
- * @var callable( mixed $input= ): (mixed|WP_Error)
+ * @var callable(mixed): (mixed|WP_Error)
*/
protected $execute_callback;
@@ -111,7 +111,7 @@ class WP_Ability {
* The optional ability permission callback.
*
* @since 6.9.0
- * @var callable( mixed $input= ): (bool|WP_Error)
+ * @var callable(mixed): (bool|WP_Error)
*/
protected $permission_callback;
diff --git a/wp-includes/version.php b/wp-includes/version.php
index af19bae075..f59ad59cce 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.0-alpha-61504';
+$wp_version = '7.0-alpha-61505';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.