diff --git a/core/tests/Drupal/KernelTests/KernelTestBase.php b/core/tests/Drupal/KernelTests/KernelTestBase.php
index d2e61ee7e5..d57637a11d 100644
--- a/core/tests/Drupal/KernelTests/KernelTestBase.php
+++ b/core/tests/Drupal/KernelTests/KernelTestBase.php
@@ -766,8 +766,9 @@ protected function installEntitySchema($entity_type_id) {
    * @endcode
    * to your settings.php.
    *
-   * @param string[] $modules
-   *   A list of modules to enable. Dependencies are not resolved; i.e.,
+   * @param string|array $modules
+   *   The name of a single module or an array of modules to enable.
+   *   Dependencies are not resolved; i.e.,
    *   multiple modules have to be specified individually. The modules are only
    *   added to the active module list and loaded; i.e., their database schema
    *   is not installed. hook_install() is not invoked. A custom module weight
