You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using wordpress-stubs with PHPStan for a plugin.
One of my methods returns the result of wp_remote_get() so I wrote in its phpdoc's comment: @return httpReturnType|WP_Error
Now when I use the returned value in another method calling wp_remote_retrieve_header
PHPStan says Parameter #1 $response of function wp_remote_retrieve_header expects array|WP_Error, httpReturnType given.