-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHPStan documentation of wp_update_post() seems to be too restrictive #55
Comments
Good spot. This was caused by #49. The parameter is documented in WordPress as |
Related: phpstan/phpstan#2923 |
Yes, please see my latest comment. |
Since phpstan/phpstan#2923 PHPStan 1.10.12+ supports object shapes now, so we could implement this as a shape on
|
Since
wordpress-stubs
6.0.2 PHPstan triggers errors when we pass$args
parameter as an object towp_update_post()
function as it's allowed.https://github.com/WordPress/WordPress/blob/6.0.2/wp-includes/post.php#L4703-L4718
The issue is closer than @Chouby one, however it seems to us that the PHPStan documentation isn't correct in the
wp_update_post()
function case.for example
triggers
The text was updated successfully, but these errors were encountered: