MDL-77350 cache: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is deprecated and emits a deprecation notice. So we need to add missing class properties that still need to be declared.
This commit is contained in:
Vendored
+6
@@ -65,6 +65,12 @@ class cache_config {
|
||||
*/
|
||||
protected $configdefinitionmappings = array();
|
||||
|
||||
/**
|
||||
* The locking mappings that have been configured.
|
||||
* @var array
|
||||
*/
|
||||
protected $configlockmappings = [];
|
||||
|
||||
/**
|
||||
* An array of configured cache lock instances.
|
||||
* @var array
|
||||
|
||||
Vendored
+8
@@ -59,6 +59,12 @@ class cachestore_dummy extends cache_store {
|
||||
*/
|
||||
protected $store = array();
|
||||
|
||||
/**
|
||||
* Cache definition
|
||||
* @var cache_definition
|
||||
*/
|
||||
protected $definition;
|
||||
|
||||
/**
|
||||
* Constructs a dummy store instance.
|
||||
* @param string $name
|
||||
@@ -119,6 +125,8 @@ class cachestore_dummy extends cache_store {
|
||||
} else {
|
||||
$this->persist = !$definition->use_static_acceleration();
|
||||
}
|
||||
|
||||
$this->definition = $definition;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Vendored
+13
@@ -173,6 +173,19 @@ class cache implements cache_loader {
|
||||
*/
|
||||
protected $subloader = false;
|
||||
|
||||
/**
|
||||
* Gets set to true if the cache writes (set|delete) must have a manual lock created first.
|
||||
* @var bool
|
||||
*/
|
||||
protected $requirelockingbeforewrite = false;
|
||||
|
||||
/**
|
||||
* Gets set to true if the cache's primary store natively supports locking.
|
||||
* If it does then we use that, otherwise we need to instantiate a second store to use for locking.
|
||||
* @var cache_store|null
|
||||
*/
|
||||
protected $nativelocking = null;
|
||||
|
||||
/**
|
||||
* Creates a new cache instance for a pre-defined definition.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user