Skip to content

Commit ddeced8

Browse files
committed
code quality: fix @var tags for nullable WP_Theme props
1 parent 67db314 commit ddeced8

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@ final class WP_Theme implements ArrayAccess {
114114
* Header data from the theme's style.css file after being sanitized.
115115
*
116116
* @since 3.4.0
117-
* @var array
117+
* @var ?array
118118
*/
119119
private $headers_sanitized;
120120

121121
/**
122122
* Is this theme a block theme.
123123
*
124124
* @since 6.2.0
125-
* @var bool
125+
* @var ?bool
126126
*/
127127
private $block_theme;
128128

@@ -132,15 +132,15 @@ final class WP_Theme implements ArrayAccess {
132132
* Cached due to sorting functions running over the translated name.
133133
*
134134
* @since 3.4.0
135-
* @var string
135+
* @var ?string
136136
*/
137137
private $name_translated;
138138

139139
/**
140140
* Errors encountered when initializing the theme.
141141
*
142142
* @since 3.4.0
143-
* @var WP_Error
143+
* @var ?WP_Error
144144
*/
145145
private $errors;
146146

@@ -162,31 +162,31 @@ final class WP_Theme implements ArrayAccess {
162162
* Otherwise, 'template' is the same as 'stylesheet'.
163163
*
164164
* @since 3.4.0
165-
* @var string
165+
* @var ?string
166166
*/
167167
private $template;
168168

169169
/**
170170
* A reference to the parent theme, in the case of a child theme.
171171
*
172172
* @since 3.4.0
173-
* @var WP_Theme
173+
* @var ?WP_Theme
174174
*/
175175
private $parent;
176176

177177
/**
178178
* URL to the theme root, usually an absolute URL to wp-content/themes
179179
*
180180
* @since 3.4.0
181-
* @var string
181+
* @var ?string
182182
*/
183183
private $theme_root_uri;
184184

185185
/**
186186
* Flag for whether the theme's textdomain is loaded.
187187
*
188188
* @since 3.4.0
189-
* @var bool
189+
* @var ?bool
190190
*/
191191
private $textdomain_loaded;
192192

@@ -202,7 +202,7 @@ final class WP_Theme implements ArrayAccess {
202202
* Block template folders.
203203
*
204204
* @since 6.4.0
205-
* @var string[]
205+
* @var ?string[]
206206
*/
207207
private $block_template_folders;
208208

0 commit comments

Comments
 (0)