diff --git a/lib/SimpleSAML/Error/ErrorCodes.php b/lib/SimpleSAML/Error/ErrorCodes.php
index 803f1acea0a7dad7c5551fef157de569c69cd485..e3586589474e97cae23e8285b22c63b06e10eaa5 100644
--- a/lib/SimpleSAML/Error/ErrorCodes.php
+++ b/lib/SimpleSAML/Error/ErrorCodes.php
@@ -72,7 +72,7 @@ class ErrorCodes
     /**
      * Fetch all default translation strings for error code descriptions.
      *
-     * @return string A map from error code to error code description
+     * @return array A map from error code to error code description
      */
     final public static function defaultGetAllErrorCodeDescriptions()
     {
@@ -118,7 +118,7 @@ class ErrorCodes
      *
      * Extend this to add error codes.
      *
-     * @return string A map from error code to error code description
+     * @return array A map from error code to error code description
      */
     public static function getAllErrorCodeDescriptions()
     {