Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/wp-includes/class-wp-theme-json-resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,31 +47,31 @@ class WP_Theme_JSON_Resolver {
* Container for data coming from core.
*
* @since 5.8.0
* @var WP_Theme_JSON
* @var WP_Theme_JSON|null
*/
protected static $core = null;

/**
* Container for data coming from the blocks.
*
* @since 6.1.0
* @var WP_Theme_JSON
* @var WP_Theme_JSON|null
*/
protected static $blocks = null;

/**
* Container for data coming from the theme.
*
* @since 5.8.0
* @var WP_Theme_JSON
* @var WP_Theme_JSON|null
*/
protected static $theme = null;

/**
* Container for data coming from the user.
*
* @since 5.9.0
* @var WP_Theme_JSON
* @var WP_Theme_JSON|null
*/
protected static $user = null;

Expand All @@ -80,7 +80,7 @@ class WP_Theme_JSON_Resolver {
* that holds the user data.
*
* @since 5.9.0
* @var int
* @var int|null
*/
protected static $user_custom_post_type_id = null;

Expand All @@ -89,7 +89,7 @@ class WP_Theme_JSON_Resolver {
*
* @since 5.8.0 As `$theme_json_i18n`.
* @since 5.9.0 Renamed from `$theme_json_i18n` to `$i18n_schema`.
* @var array
* @var array|null
*/
protected static $i18n_schema = null;

Expand Down
30 changes: 0 additions & 30 deletions tests/phpstan/baselines/assign.propertyType.neon
Original file line number Diff line number Diff line change
Expand Up @@ -53,36 +53,6 @@ parameters:
identifier: assign.propertyType
count: 1
path: ../../../src/wp-includes/class-wp-term-query.php
-
message: '#^Static property WP_Theme_JSON_Resolver\:\:\$blocks \(WP_Theme_JSON\) does not accept null\.$#'
identifier: assign.propertyType
count: 1
path: ../../../src/wp-includes/class-wp-theme-json-resolver.php
-
message: '#^Static property WP_Theme_JSON_Resolver\:\:\$core \(WP_Theme_JSON\) does not accept null\.$#'
identifier: assign.propertyType
count: 1
path: ../../../src/wp-includes/class-wp-theme-json-resolver.php
-
message: '#^Static property WP_Theme_JSON_Resolver\:\:\$i18n_schema \(array\) does not accept null\.$#'
identifier: assign.propertyType
count: 1
path: ../../../src/wp-includes/class-wp-theme-json-resolver.php
-
message: '#^Static property WP_Theme_JSON_Resolver\:\:\$theme \(WP_Theme_JSON\) does not accept null\.$#'
identifier: assign.propertyType
count: 1
path: ../../../src/wp-includes/class-wp-theme-json-resolver.php
-
message: '#^Static property WP_Theme_JSON_Resolver\:\:\$user \(WP_Theme_JSON\) does not accept null\.$#'
identifier: assign.propertyType
count: 1
path: ../../../src/wp-includes/class-wp-theme-json-resolver.php
-
message: '#^Static property WP_Theme_JSON_Resolver\:\:\$user_custom_post_type_id \(int\) does not accept null\.$#'
identifier: assign.propertyType
count: 1
path: ../../../src/wp-includes/class-wp-theme-json-resolver.php
-
message: '#^Property WP_User\:\:\$roles \(array\<string\>\) does not accept array\<string, bool\>\.$#'
identifier: assign.propertyType
Expand Down
Loading