From e299c0656e4f7b250e41dba4fb3ebdca95cfb53f Mon Sep 17 00:00:00 2001 From: Sasha Anastasi Date: Tue, 13 May 2025 14:49:42 +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 068de60..64ceb99 100644 --- a/tests/cache_config_test.php +++ b/tests/cache_config_test.php @@ -27,6 +27,13 @@ */ class cache_config_test extends \advanced_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.