From a2bc4b735c54278304234f6d7e105c36ea847f0c Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 29 Oct 2018 02:44:17 +0400 Subject: Removal of excess conversion Signed-off-by: Valentin Popov --- externallib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'externallib.php') diff --git a/externallib.php b/externallib.php index 279ffbd..1ccfd7c 100644 --- a/externallib.php +++ b/externallib.php @@ -56,7 +56,7 @@ class local_webhooks_external extends external_api { * * @param $serviceid * - * @return array + * @return object * * @since Moodle 2.2 * @since Moodle 2.9 Options available @@ -72,7 +72,7 @@ class local_webhooks_external extends external_api { $context = context_system::instance(); self::validate_context($context); - return (array) local_webhooks_api::get_service($parameters['serviceid']); + return local_webhooks_api::get_service($parameters['serviceid']); } /** -- cgit v1.2.3