Merge branch 'MDL-81621-404' of https://github.com/paulholden/moodle into MOODLE_404_STABLE

This commit is contained in:
Huong Nguyen 2024-05-01 10:59:03 +07:00
commit 9977c07a69
No known key found for this signature in database
GPG Key ID: 40D88AB693A3E72A

View File

@ -53,9 +53,7 @@ class base_send_notification_test extends advanced_testcase {
*/
private function get_instance_reflection(): \ReflectionMethod {
$rc = new \ReflectionClass(base_send_notification::class);
$rcm = $rc->getMethod('get_instance');
$rcm->setAccessible(true);
return $rcm;
return $rc->getMethod('get_instance');
}
/**