diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index 8736b90..40b4e40 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -244,10 +244,10 @@ function comment_node_view_alter(array &$build, EntityInterface $node, EntityVie * * @param \Drupal\comment\CommentInterface $comment * The comment object. - * @param $view_mode + * @param string $view_mode * (optional) View mode; for instance, 'full', 'teaser', etc. Defaults to * 'full'. - * @param $langcode + * @param string $langcode * (optional) A language code to use for rendering. Defaults to the global * content language of the current request. * @@ -264,12 +264,12 @@ function comment_view(CommentInterface $comment, $view_mode = 'full', $langcode /** * Constructs render array from an array of loaded comments. * - * @param $comments + * @param \Drupal\comment\CommentInterface[] $comments * An array of comments as returned by entity_load_multiple(). - * @param $view_mode + * @param string $view_mode * (optional) View mode; for instance, 'full', 'teaser', etc. Defaults to * 'full'. - * @param $langcode + * @param string $langcode * (optional) A string indicating the language field values are to be shown * in. If no language is provided the current content language is used. * Defaults to NULL. diff --git a/core/modules/comment/src/CommentForm.php b/core/modules/comment/src/CommentForm.php index 51a6cce..dd92f2b 100644 --- a/core/modules/comment/src/CommentForm.php +++ b/core/modules/comment/src/CommentForm.php @@ -335,9 +335,9 @@ protected function flagViolations(EntityConstraintViolationListInterface $violat /** * Form submission handler for the 'preview' action. * - * @param $form + * @param array $form * An associative array containing the structure of the form. - * @param $form_state + * @param \Drupal\Core\Form\FormStateInterface $form_state * The current state of the form. */ public function preview(array &$form, FormStateInterface $form_state) { diff --git a/core/modules/comment/src/Tests/CommentPagerTest.php b/core/modules/comment/src/Tests/CommentPagerTest.php index 9061f64..bfda400 100644 --- a/core/modules/comment/src/Tests/CommentPagerTest.php +++ b/core/modules/comment/src/Tests/CommentPagerTest.php @@ -173,9 +173,9 @@ function testCommentOrderingThreading() { /** * Asserts that the comments are displayed in the correct order. * - * @param $comments - * And array of comments. - * @param $expected_order + * @param \Drupal\comment\CommentInterface[] $comments + * An array of comments, must be of the type CommentInterface. + * @param array $expected_order * An array of keys from $comments describing the expected order. */ function assertCommentOrder(array $comments, array $expected_order) {