Skip to content

Commit b0f7b96

Browse files
committed
fix: restore typed properties required by PHPCS
1 parent b17d5f1 commit b0f7b96

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

plugins/hwp-previews/src/Admin/Settings/Fields/Settings_Field_Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Settings_Field_Collection {
5353
*
5454
* @var array<\HWP\Previews\Admin\Settings\Fields\Settings_Field_Interface>
5555
*/
56-
protected $fields = [];
56+
protected array $fields = [];
5757

5858
/**
5959
* Constructor to initialize the fields.

plugins/hwp-previews/src/Preview/Parameter/Preview_Parameter_Registry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Preview_Parameter_Registry {
2222
*
2323
* @var self|null
2424
*/
25-
protected static $instance = null;
25+
protected static ?self $instance = null;
2626

2727
/**
2828
* Registered parameters.

plugins/hwp-previews/src/Preview/Post/Post_Preview_Service.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ class Post_Preview_Service {
1919
*
2020
* @var array<string>
2121
*/
22-
protected $post_types = [];
22+
protected array $post_types = [];
2323

2424
/**
2525
* The allowed post-statuses for previews.
2626
*
2727
* @var array<string>
2828
*/
29-
protected $post_statuses = [];
29+
protected array $post_statuses = [];
3030

3131
/**
3232
* The allowed post-statuses for parent post-types (hierarchical).
3333
*
3434
* @var array<string>
3535
*/
36-
protected $parent_post_statuses = [];
36+
protected array $parent_post_statuses = [];
3737

3838
/**
3939
* Get the post-statuses.

plugins/hwp-previews/src/Preview/Post/Post_Settings_Service.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Post_Settings_Service {
1919
*
2020
* @var array<mixed>
2121
*/
22-
protected $settings_values = [];
22+
protected array $settings_values = [];
2323

2424
/**
2525
* Initialize the settings service.

0 commit comments

Comments
 (0)