MDL-79890 core: ReflectionProperties::setValue() should take 2 args
Since PHP 8.3 setValue() must be called with null as the first arg if called statically.
This commit is contained in:
@@ -1968,7 +1968,7 @@ class accesslib_test extends advanced_testcase {
|
||||
$mockedplugins->setAccessible(true);
|
||||
$plugins = $mockedplugins->getValue();
|
||||
$plugins['fake'] = [$pluginname => "{$CFG->dirroot}/lib/tests/fixtures/fakeplugins/$pluginname"];
|
||||
$mockedplugins->setValue($plugins);
|
||||
$mockedplugins->setValue(null, $plugins);
|
||||
update_capabilities('fake_access');
|
||||
$this->resetDebugging(); // We have debugging messages here that we need to get rid of.
|
||||
// End of the component loader mock.
|
||||
|
||||
Reference in New Issue
Block a user