Skip to content

Commit f6bd5a5

Browse files
committed
code quality: fix @var tags for nullable WP_Query props
1 parent 8949842 commit f6bd5a5

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/wp-includes/class-wp-query.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class WP_Query {
2222
* Query vars set by the user.
2323
*
2424
* @since 1.5.0
25-
* @var array
25+
* @var ?array
2626
*/
2727
public $query;
2828

@@ -72,23 +72,23 @@ class WP_Query {
7272
* The ID of the queried object.
7373
*
7474
* @since 1.5.0
75-
* @var int
75+
* @var ?int
7676
*/
7777
public $queried_object_id;
7878

7979
/**
8080
* SQL for the database query.
8181
*
8282
* @since 2.0.1
83-
* @var string
83+
* @var ?string
8484
*/
8585
public $request;
8686

8787
/**
8888
* Array of post objects or post IDs.
8989
*
9090
* @since 1.5.0
91-
* @var WP_Post[]|int[]
91+
* @var WP_Post[]|int[]|null
9292
*/
9393
public $posts;
9494

@@ -139,7 +139,7 @@ class WP_Query {
139139
* The list of comments for current post.
140140
*
141141
* @since 2.2.0
142-
* @var WP_Comment[]
142+
* @var ?WP_Comment[]
143143
*/
144144
public $comments;
145145

@@ -163,7 +163,7 @@ class WP_Query {
163163
* Current comment object.
164164
*
165165
* @since 2.2.0
166-
* @var WP_Comment
166+
* @var ?WP_Comment
167167
*/
168168
public $comment;
169169

@@ -466,7 +466,7 @@ class WP_Query {
466466
* Cached list of search stopwords.
467467
*
468468
* @since 3.7.0
469-
* @var array
469+
* @var ?array
470470
*/
471471
private $stopwords;
472472

0 commit comments

Comments
 (0)