Skip to content

Commit e0ca968

Browse files
committed
fix: creation of dynamic property is deprecated
1 parent 82785c9 commit e0ca968

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

__tests__/unit-tests/test-rest-api.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
use WP_CRON_CONTROL_SECRET;
99

1010
class REST_API_Tests extends \WP_UnitTestCase {
11+
/** @var WP_REST_Server|null */
12+
private $server = null;
13+
1114
public function setUp(): void {
1215
parent::setUp();
1316

@@ -19,9 +22,10 @@ public function setUp(): void {
1922
Utils::clear_cron_table();
2023
}
2124

22-
function tearDown(): void {
25+
public function tearDown(): void {
2326
global $wp_rest_server;
2427
$wp_rest_server = null;
28+
$this->server = null;
2529

2630
Utils::clear_cron_table();
2731
parent::tearDown();

0 commit comments

Comments
 (0)