From 95a36b52f34587c5d458570cfa78a533d92039fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Sat, 12 Nov 2016 10:45:29 +0100 Subject: [PATCH] MDL-56916 docs: Fix documentation of the normalize_component return --- lib/classes/component.php | 2 +- lib/deprecatedlib.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/classes/component.php b/lib/classes/component.php index 5ea3dfd4996..489ed1f833e 100644 --- a/lib/classes/component.php +++ b/lib/classes/component.php @@ -1025,7 +1025,7 @@ $cache = '.var_export($cache, true).'; * Note: this does not verify the validity of plugin or type names. * * @param string $component - * @return array as (string)$type => (string)$plugin + * @return array two-items list of [(string)type, (string|null)name] */ public static function normalize_component($component) { if ($component === 'moodle' or $component === 'core' or $component === '') { diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index 1e92aa4f695..e39324e35a7 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -214,7 +214,7 @@ function get_plugin_directory($plugintype, $name) { * @deprecated since 2.6, use core_component::normalize_component() * * @param string $component - * @return array as (string)$type => (string)$plugin + * @return array two-items list of [(string)type, (string|null)name] */ function normalize_component($component) {