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:
Andrew Nicols
2023-11-15 09:14:34 +08:00
parent 14414fe253
commit 898ac0ab6d
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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.