aboutsummaryrefslogtreecommitdiff
path: root/lib/object.inc.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-07-06 13:25:06 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2022-07-06 13:25:06 +0000
commit89512696839235e4b3d2ca135917ae038ff5fc3c (patch)
treee7870c1f8313dc39836745408dbb7a01f73a9b4e /lib/object.inc.php
parenta5813cb77af590aaf2c49aea66f9d33d47b066f6 (diff)
fixes 'Method/function should return XY but return statement is missing', fixes #1278
Closes #1278 Merge request studip/studip!783
Diffstat (limited to 'lib/object.inc.php')
-rw-r--r--lib/object.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/object.inc.php b/lib/object.inc.php
index c0c4e15..5f231da 100644
--- a/lib/object.inc.php
+++ b/lib/object.inc.php
@@ -342,7 +342,7 @@ function object_return_views ($object_id)
/**
* converts a ouv type to an id
* @param $type string former used type of visited objects or module (i.e. news, documents, wiki)
- * @return int
+ * @return ?int
*/
function object_type_to_id($type)
{
@@ -375,6 +375,7 @@ function object_type_to_id($type)
}
}
+ return null;
}
/**