From 81217588e23189a0243f2db3e8ae05385c0d4a46 Mon Sep 17 00:00:00 2001 From: Sasha Anastasi Date: Tue, 13 May 2025 14:46:45 +1200 Subject: [PATCH] config test: explicitly declare class property Resolves error 'Creation of dynamic property tool_forcedcache_cache_config_test:: is deprecated' --- tests/cache_config_test.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/cache_config_test.php b/tests/cache_config_test.php index 43426ed..65bc3d1 100644 --- a/tests/cache_config_test.php +++ b/tests/cache_config_test.php @@ -25,6 +25,13 @@ */ class tool_forcedcache_cache_config_test extends \core_phpunit\testcase { + /** + * Temporary directory for loading config into + * + * @var string + */ + private $tmpdir; + /** * We need to load the config files outside of the $CFG->dirroot, so it * will be copied out as part of these tests.