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
I would like to point out that we should have a look at php-stubs/wordpress-stubs#134. If we can use conditional return types like this, we can implement them in the stubs. This has the benefit that PHPStan handles all the $argumentType->getConstantSomething()->yes->maybe->no logic for us.
Same as
GetTermsDynamicFunctionReturnTypeExtension
, but just forWP_Term_Query()
See also #48 for
WP_Query
Logic is as follows:
https://github.com/WordPress/wordpress-develop/blob/bdc2084b30fd842fe862f656aafd1a7c46c53317/src/wp-includes/class-wp-term-query.php#L314-L339
The text was updated successfully, but these errors were encountered: