mirror of
https://github.com/moodle/moodle.git
synced 2025-04-25 10:26:17 +02:00
MDL-57273 persistent: Fix access to set/get in test
The setters and getters for the path property in the test class need to be protected.
This commit is contained in:
parent
d5818626c0
commit
e97e96155a
@ -494,7 +494,7 @@ class core_testable_persistent extends \core\persistent {
|
||||
$this->afterdelete = true;
|
||||
}
|
||||
|
||||
public function get_path() {
|
||||
protected function get_path() {
|
||||
$value = $this->raw_get('path');
|
||||
if (!empty($value)) {
|
||||
$value = json_decode($value);
|
||||
@ -502,7 +502,7 @@ class core_testable_persistent extends \core\persistent {
|
||||
return $value;
|
||||
}
|
||||
|
||||
public function set_path($value) {
|
||||
protected function set_path($value) {
|
||||
if (!empty($value)) {
|
||||
$value = json_encode($value);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user