Skip to content

Commit 1943f9b

Browse files
committed
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 php-stubs/wordpress-stubs#410 for some external discussion. Props farhad0, marian1 See #64224 git-svn-id: https://develop.svn.wordpress.org/trunk@61505 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6ba48db commit 1943f9b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-includes/abilities-api/class-wp-ability.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,15 @@ class WP_Ability {
103103
* The ability execute callback.
104104
*
105105
* @since 6.9.0
106-
* @var callable( mixed $input= ): (mixed|WP_Error)
106+
* @var callable(mixed): (mixed|WP_Error)
107107
*/
108108
protected $execute_callback;
109109

110110
/**
111111
* The optional ability permission callback.
112112
*
113113
* @since 6.9.0
114-
* @var callable( mixed $input= ): (bool|WP_Error)
114+
* @var callable(mixed): (bool|WP_Error)
115115
*/
116116
protected $permission_callback;
117117

0 commit comments

Comments
 (0)