diff --git a/core/modules/forum/src/Tests/ForumTest.php b/core/modules/forum/src/Tests/ForumTest.php
index 53359c1c95341e26919cdc870b13376ef61fd754..9440179f2e5f83bea5ccac8366f793e164b1573c 100644
--- a/core/modules/forum/src/Tests/ForumTest.php
+++ b/core/modules/forum/src/Tests/ForumTest.php
@@ -392,12 +392,12 @@ function editForumVocabulary() {
   /**
    * Creates a forum container or a forum.
    *
-   * @param $type
+   * @param string $type
    *   The forum type (forum container or forum).
-   * @param $parent
+   * @param int $parent
    *   The forum parent. This defaults to 0, indicating a root forum.
    *
-   * @return
+   * @return \Drupal\Core\Database\StatementInterface
    *   The created taxonomy term data.
    */
   function createForum($type, $parent = 0) {
@@ -441,7 +441,7 @@ function createForum($type, $parent = 0) {
   /**
    * Deletes a forum.
    *
-   * @param $tid
+   * @param int $tid
    *   The forum ID.
    */
   function deleteForum($tid) {
@@ -461,9 +461,9 @@ function deleteForum($tid) {
   /**
    * Runs basic tests on the indicated user.
    *
-   * @param $user
+   * @param \Drupal\Core\Session\AccountInterface $user
    *   The logged in user.
-   * @param $admin
+   * @param bool $admin
    *   User has 'access administration pages' privilege.
    */
   private function doBasicTests($user, $admin) {
@@ -565,9 +565,9 @@ function createForumTopic($forum, $container = FALSE) {
    *
    * @param \Drupal\Core\Entity\EntityInterface $node
    *   The node being checked.
-   * @param $admin
+   * @param bool $admin
    *   Boolean to indicate whether the user can 'access administration pages'.
-   * @param $response
+   * @param int $response
    *   The expected HTTP response code.
    */
   private function verifyForums(EntityInterface $node, $admin, $response = 200) {
@@ -639,9 +639,9 @@ private function verifyForums(EntityInterface $node, $admin, $response = 200) {
   /**
    * Verifies the display of a forum page.
    *
-   * @param $forum
+   * @param array $forum
    *   A row from the taxonomy_term_data table in an array.
-   * @param $parent
+   * @param array $parent
    *   (optional) An array representing the forum's parent.
    */
   private function verifyForumView($forum, $parent = NULL) {