diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php
index 7916a13179aebef3ffc2c9efada79baa00fc894a..489966ac971d3273919fbad9408992320dff1bbc 100644
--- a/lib/private/legacy/util.php
+++ b/lib/private/legacy/util.php
@@ -392,7 +392,8 @@ class OC_Util {
 	 *
 	 * @param String $userId
 	 * @param \OCP\Files\Folder $userDirectory
-	 * @throws \RuntimeException
+	 * @throws \OCP\Files\NotFoundException
+	 * @throws \OCP\Files\NotPermittedException
 	 * @suppress PhanDeprecatedFunction
 	 */
 	public static function copySkeleton($userId, \OCP\Files\Folder $userDirectory) {