Currently, the extension does not handle query strings in the $args parameter.
|
if (!($argument instanceof ConstantArrayType)) { |
|
// Without constant array argument return default return type |
|
return self::defaultType(); |
|
} |
Supported functions that explicitly accept query strings:
get_tags()
get_terms()
wp_get_object_terms()
Supported functions that implicitly accept query strings by calling wp_parse_args() or a function that does:
wp_get_post_categories()
wp_get_post_tags()
wp_get_post_terms()
Currently, the extension does not handle query strings in the
$argsparameter.phpstan-wordpress/src/GetTermsDynamicFunctionReturnTypeExtension.php
Lines 65 to 68 in a2f369b
Supported functions that explicitly accept query strings:
get_tags()get_terms()wp_get_object_terms()Supported functions that implicitly accept query strings by calling
wp_parse_args()or a function that does:wp_get_post_categories()wp_get_post_tags()wp_get_post_terms()