From 9c601e5f0b64b63ee5c23031b0f0b76bc6d2f101 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Mon, 22 Apr 2024 08:30:06 +0100 Subject: [PATCH] MDL-81621 mod_bigbluebuttonbn: remove reflection setAccessible call. See 361dfe8145 for context. --- .../tests/task/base_send_notification_test.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mod/bigbluebuttonbn/tests/task/base_send_notification_test.php b/mod/bigbluebuttonbn/tests/task/base_send_notification_test.php index 5ef3850081a..c21082a3835 100644 --- a/mod/bigbluebuttonbn/tests/task/base_send_notification_test.php +++ b/mod/bigbluebuttonbn/tests/task/base_send_notification_test.php @@ -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'); } /**