Skip to content

Commit

Permalink
Merge pull request #70 from skaut/double-underscore-fix
Browse files Browse the repository at this point in the history
Fixed properties with double underscores
  • Loading branch information
marekdedic authored Jul 9, 2022
2 parents 77f3f4a + 3911393 commit 60b9bd0
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 38 deletions.
26 changes: 13 additions & 13 deletions stubs/WordPress/class-wp-comment-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
*/
class WP_Comment_Query {
/**
* @var array{author_email?: string, author_url?: string, author_in?: array<int>, author_not_in?: array<int>, comment_in?: array<int>, comment_not_in: array<int>, count?: bool, date_query?: array<mixed>, fields?: string, ID?: int, include_unapproved?: array<string>, karma?: int, meta_key?: string|array<string>, meta_value?: string|array<string>, meta_compare?: string, meta_compare_key?: string, meta_type?: string, meta_type_key?: string, meta_query?: array<mixed>, number?: int, paged?: int, offset?: int, no_found_rows?: bool, orderby?: string|array<string>, order: string, parent?: int, parent_in?: array<int>, parent_not_in?: array<int>, post_author_in?: array<int>, post_author_not_in?: array<int>, post_ID?: int, post_id?: int, post_in: array<int>, post_not_in?: array<int>, post_author?: int, post_status?: string|array<string>, post_type?: string|array<string>, post_name?: string, post_parent?: int, search?: string, status?: string|array<string>, tape?: string|array<string>, type_in?: array<string>, type_not_in?: array<string>, hierarchical?: bool|string, cache_domain?: string, update_comment_meta_cache?: bool, update_comment_post_cache?: bool} {
* @var array{author_email?: string, author_url?: string, author__in?: array<int>, author__not_in?: array<int>, comment__in?: array<int>, comment__not_in: array<int>, count?: bool, date_query?: array<mixed>, fields?: string, ID?: int, include_unapproved?: array<string>, karma?: int, meta_key?: string|array<string>, meta_value?: string|array<string>, meta_compare?: string, meta_compare_key?: string, meta_type?: string, meta_type_key?: string, meta_query?: array<mixed>, number?: int, paged?: int, offset?: int, no_found_rows?: bool, orderby?: string|array<string>, order: string, parent?: int, parent__in?: array<int>, parent__not_in?: array<int>, post_author__in?: array<int>, post_author__not_in?: array<int>, post_ID?: int, post_id?: int, post__in: array<int>, post__not_in?: array<int>, post_author?: int, post_status?: string|array<string>, post_type?: string|array<string>, post_name?: string, post_parent?: int, search?: string, status?: string|array<string>, tape?: string|array<string>, type__in?: array<string>, type__not_in?: array<string>, hierarchical?: bool|string, cache_domain?: string, update_comment_meta_cache?: bool, update_comment_post_cache?: bool} {
* @type string $author_email
* @type string $author_url
* @type array<int> $author_in
* @type array<int> $author_not_in
* @type array<int> $comment_in
* @type array<int> $comment_not_in
* @type array<int> $author__in
* @type array<int> $author__not_in
* @type array<int> $comment__in
* @type array<int> $comment__not_in
* @type bool $count
* @type array<mixed> $date_query
* @type string $fields
Expand All @@ -34,14 +34,14 @@ class WP_Comment_Query {
* @type string|array<string> $orderby
* @type string $order
* @type int $parent
* @type array<int> $parent_in
* @type array<int> $parent_not_in
* @type array<int> $post_author_in
* @type array<int> $post_author_not_in
* @type array<int> $parent__in
* @type array<int> $parent__not_in
* @type array<int> $post_author__in
* @type array<int> $post_author__not_in
* @type int $post_ID
* @type int $post_id
* @type array<int> $post_in
* @type array<int> $post_not_in
* @type array<int> $post__in
* @type array<int> $post__not_in
* @type int $post_author
* @type string|array<string> $post_status
* @type string|array<string> $post_type
Expand All @@ -50,8 +50,8 @@ class WP_Comment_Query {
* @type string $search
* @type string|array<string> $status
* @type string|array<string> $type
* @type array<string> $type_in
* @type array<string> $type_not_in
* @type array<string> $type__in
* @type array<string> $type__not_in
* @type bool|string $hierarchical
* @type string $cache_domain
* @type bool $update_comment_meta_cache
Expand Down
32 changes: 16 additions & 16 deletions stubs/WordPress/class-wp-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ class WP_Query {
public $found_posts;

/**
* @param string|array{attachment_id?: int, author?: int|string, author_name?: string, author_in?: array<int>, author_not_in?: array<int>, cache_results?: bool, cat?: int|string, category_and?: array<int>, category_in?: array<int>, category_not_in?: array<int>, category_name?: string, comment_count?: int|array{value: int, compare: string}, comment_status?: string, comments_per_page?: int, date_query?: array<mixed>, day?: int, exact?: bool, fields?: string, hour?: int, ignore_sticky_posts?: int|bool, m?: int, meta_key?: string|array<string>, meta_value?: string|array<string>, meta_compare?: string, meta_compare_key?: string, meta_type?: string, meta_type_key?: string, meta_query?: array<mixed>, menu_order?: int, minute?: int, monthnum?: int, name?: string, nopaging?: bool, no_found_rows?: bool, offset?: int, order?: string, orderby?: string|array<string, string>, p?: int, page?: int, paged?: int, page_id?: int, pagename?: string, perm?: string, ping_status?: string, post_in?: array<int>, post_not_in?: array<int>, post_mime_type?: string, post_name_in?: array<string>, post_parent?: int, post_parent_in?: array<int>, post_parent_not_in?: array<int>, post_type?: string|array<string>, post_status?: string|array<string>, posts_per_page?: int, posts_per_archive_page?: int, s?: string, second?: int, sentence?: bool, suppress_filters?: bool, tag?: string, tag_and?: array<int>, tag_in?: array<int>, tag_not_in?: array<int>, tag_id?: int, tag_slug_and?: array<string>, tag_slug_in?: array<string>, tax_query?: array<mixed>, title?: string, update_post_meta_cache?: bool, update_post_term_cache?: bool, lazy_load_term_meta?: bool, w?: int, year?: int} $query {
* @param string|array{attachment_id?: int, author?: int|string, author_name?: string, author__in?: array<int>, author__not_in?: array<int>, cache_results?: bool, cat?: int|string, category__and?: array<int>, category__in?: array<int>, category__not_in?: array<int>, category_name?: string, comment_count?: int|array{value: int, compare: string}, comment_status?: string, comments_per_page?: int, date_query?: array<mixed>, day?: int, exact?: bool, fields?: string, hour?: int, ignore_sticky_posts?: int|bool, m?: int, meta_key?: string|array<string>, meta_value?: string|array<string>, meta_compare?: string, meta_compare_key?: string, meta_type?: string, meta_type_key?: string, meta_query?: array<mixed>, menu_order?: int, minute?: int, monthnum?: int, name?: string, nopaging?: bool, no_found_rows?: bool, offset?: int, order?: string, orderby?: string|array<string, string>, p?: int, page?: int, paged?: int, page_id?: int, pagename?: string, perm?: string, ping_status?: string, post__in?: array<int>, post__not_in?: array<int>, post_mime_type?: string, post_name__in?: array<string>, post_parent?: int, post_parent__in?: array<int>, post_parent__not_in?: array<int>, post_type?: string|array<string>, post_status?: string|array<string>, posts_per_page?: int, posts_per_archive_page?: int, s?: string, second?: int, sentence?: bool, suppress_filters?: bool, tag?: string, tag__and?: array<int>, tag__in?: array<int>, tag__not_in?: array<int>, tag_id?: int, tag_slug__and?: array<string>, tag_slug__in?: array<string>, tax_query?: array<mixed>, title?: string, update_post_meta_cache?: bool, update_post_term_cache?: bool, lazy_load_term_meta?: bool, w?: int, year?: int} $query {
* @type int $attachment_id
* @type int|string $author
* @type string $author_name
* @type array<int> $author_in
* @type array<int> $author_not_in
* @type array<int> $author__in
* @type array<int> $author__not_in
* @type bool $cache_results
* @type int|string $cat
* @type array<int> $category_and
* @type array<int> $category_in
* @type array<int> $category_not_in
* @type array<int> $category__and
* @type array<int> $category__in
* @type array<int> $category__not_in
* @type string $category_name
* @type int|array{value: int, compare: string} $comment_count
* @type string $comment_status
Expand Down Expand Up @@ -62,13 +62,13 @@ class WP_Query {
* @type string $pagename
* @type string $perm
* @type string $ping_status
* @type array<int> $post_in
* @type array<int> $post_not_in
* @type array<int> $post__in
* @type array<int> $post__not_in
* @type string $post_mime_type
* @type array<string> $post_name_in
* @type array<string> $post_name__in
* @type int $post_parent
* @type array<int> $post_parent_in
* @type array<int> $post_parent_not_in
* @type array<int> $post_parent__in
* @type array<int> $post_parent__not_in
* @type string|array<string> $post_type
* @type string|array<string> $post_status
* @type int $posts_per_page
Expand All @@ -78,12 +78,12 @@ class WP_Query {
* @type bool $sentence
* @type bool $suppress_filters
* @type string $tag
* @type array<int> $tag_and
* @type array<int> $tag_in
* @type array<int> $tag_not_in
* @type array<int> $tag__and
* @type array<int> $tag__in
* @type array<int> $tag__not_in
* @type int $tag_id
* @type array<string> $tag_slug_and
* @type array<string> $tag_slug_in
* @type array<string> $tag_slug__and
* @type array<string> $tag_slug__in
* @type array<mixed> $tax_query
* @type string $title
* @type bool $update_post_meta_cache
Expand Down
18 changes: 9 additions & 9 deletions stubs/WordPress/class-wp-user-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
*/
class WP_User_Query {
/**
* @param string|null|array{blog_id?: int, role?: string|array<string>, role_in?: array<string>, role_not_in?: array<string>, meta_key?: string|array<string>, meta_value?: string|array<string>, meta_compare?: string, meta_compare_key?: string, meta_type?: string, meta_type_key?: string, meta_query?: array<mixed>, capability?: string, capability_in?: array<string>, capability_not_in?: array<string>, include?: array<int>, exclude?: array<int>, search?: string, search_columns?: array<string>, orderby?: string|array<string>|array<string, string>, order?: string, offset?: int, number?: int, paged?: int, count_total?: bool, fields?: string|array<string>, who?: string, has_published_posts?: bool|array<string>, nicename?: string, nicename_in?: array<string>, nicename_not_in?: array<string>, login?: string, login_in?: array<string>, login_not_in?: array<string>} $query {
* @param string|null|array{blog_id?: int, role?: string|array<string>, role__in?: array<string>, role__not_in?: array<string>, meta_key?: string|array<string>, meta_value?: string|array<string>, meta_compare?: string, meta_compare_key?: string, meta_type?: string, meta_type_key?: string, meta_query?: array<mixed>, capability?: string, capability__in?: array<string>, capability__not_in?: array<string>, include?: array<int>, exclude?: array<int>, search?: string, search_columns?: array<string>, orderby?: string|array<string>|array<string, string>, order?: string, offset?: int, number?: int, paged?: int, count_total?: bool, fields?: string|array<string>, who?: string, has_published_posts?: bool|array<string>, nicename?: string, nicename__in?: array<string>, nicename__not_in?: array<string>, login?: string, login__in?: array<string>, login__not_in?: array<string>} $query {
* @type int $blog_id
* @type string|array<string> $role
* @type array<string> $role_in
* @type array<string> $role_not_in
* @type array<string> $role__in
* @type array<string> $role__not_in
* @type string|array<string> $meta_key
* @type string|array<string> $meta_value
* @type string $meta_compare
Expand All @@ -20,8 +20,8 @@ class WP_User_Query {
* @type string $meta_type_key
* @type array<mixed> $meta_query
* @type string $capability
* @type array<string> $capability_in
* @type array<string> $capability_not_in
* @type array<string> $capability__in
* @type array<string> $capability__not_in
* @type array<int> $include
* @type array<int> $exclude
* @type string $search
Expand All @@ -36,11 +36,11 @@ class WP_User_Query {
* @type string $who
* @type bool|array<string> $has_published_posts
* @type string $nicename
* @type array<string> $nicename_in
* @type array<string> $nicename_not_in
* @type array<string> $nicename__in
* @type array<string> $nicename__not_in
* @type string $login
* @type array<string> $login_in
* @type array<string> $login_not_in
* @type array<string> $login__in
* @type array<string> $login__not_in
* }
*/
public function __construct( $query = null ) {
Expand Down

1 comment on commit 60b9bd0

@szepeviktor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.