From 55dd9980bbf1617e0a33f96ee106e177da2970d3 Mon Sep 17 00:00:00 2001 From: Anton Vlasenko Date: Thu, 15 Dec 2022 23:59:06 +0100 Subject: [PATCH] Fix dynamic properties. PHP 8.2 doesn't support dynamic properties. --- phpunit/block-supports/layout-test.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/phpunit/block-supports/layout-test.php b/phpunit/block-supports/layout-test.php index a22d77cf35408e..9a01a371f72de5 100644 --- a/phpunit/block-supports/layout-test.php +++ b/phpunit/block-supports/layout-test.php @@ -7,6 +7,21 @@ */ class WP_Block_Supports_Layout_Test extends WP_UnitTestCase { + /** + * @var string|null + */ + private $theme_root; + + /** + * @var array|null + */ + private $orig_theme_dir; + + /** + * @var array|null + */ + private $queries; + public function set_up() { parent::set_up(); $this->theme_root = realpath( __DIR__ . '/../data/themedir1' );