diff --git a/core/modules/taxonomy/src/Controller/TaxonomyController.php b/core/modules/taxonomy/src/Controller/TaxonomyController.php
index e24eb6f..24c5622 100644
--- a/core/modules/taxonomy/src/Controller/TaxonomyController.php
+++ b/core/modules/taxonomy/src/Controller/TaxonomyController.php
@@ -23,7 +23,7 @@ class TaxonomyController extends ControllerBase {
    * @param \Drupal\taxonomy\TermInterface $term
    *   A taxonomy term entity.
    *
-   * @return
+   * @return string
    *   The term name to be used as the page title.
    */
   public function getTitle(TermInterface $term) {
diff --git a/core/modules/taxonomy/src/Controller/TermAutocompleteController.php b/core/modules/taxonomy/src/Controller/TermAutocompleteController.php
index 08a01fc..2f01fe9 100644
--- a/core/modules/taxonomy/src/Controller/TermAutocompleteController.php
+++ b/core/modules/taxonomy/src/Controller/TermAutocompleteController.php
@@ -43,7 +43,7 @@ class TermAutocompleteController implements ContainerInjectionInterface {
    *
    * @param \Drupal\Core\Entity\Query\QueryInterface $term_entity_query
    *   The entity query service.
-   * @param \Drupal\Core\Entity\EntityManagerInterface
+   * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
    *   The entity manager.
    */
   public function __construct(QueryInterface $term_entity_query, EntityManagerInterface $entity_manager) {
@@ -134,7 +134,7 @@ public function autocomplete(Request $request, $entity_type, $field_name) {
    *   The full typed tags string.
    * @param array $vids
    *   An array of vocabulary IDs which
-   * @param $tag_last
+   * @param string $tag_last
    *   The lasted typed tag.
    *
    * @return array
diff --git a/core/modules/taxonomy/src/TermStorageInterface.php b/core/modules/taxonomy/src/TermStorageInterface.php
index f60d7a2..5dc7e65 100644
--- a/core/modules/taxonomy/src/TermStorageInterface.php
+++ b/core/modules/taxonomy/src/TermStorageInterface.php
@@ -21,7 +21,7 @@
    * @param array $tids
    *   Array of terms that need to be removed from hierarchy.
    */
-  public function deleteTermHierarchy($tids);
+  public function deleteTermHierarchy(array $tids);
 
   /**
    * Updates terms hierarchy information with the hierarchy trail of it.
@@ -121,6 +121,6 @@ public function resetWeights($vid);
    * @return array
    *   An array of nids and the term entities they were tagged with.
    */
-  public function getNodeTerms($nids, $vocabs = array(), $langcode = NULL);
+  public function getNodeTerms(array $nids, $vocabs = array(), $langcode = NULL);
 
 }
diff --git a/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php b/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php
index cfc76bd..710acd1 100644
--- a/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php
+++ b/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php
@@ -137,7 +137,7 @@ public function testFilters() {
    * @param string $message
    *   Message suffix to display.
    */
-  protected function assertPageCounts($path, $counts, $message) {
+  protected function assertPageCounts($path, array $counts, $message) {
     // Get the text of the page.
     $this->drupalGet($path);
     $text = $this->getTextContent();
@@ -159,7 +159,7 @@ protected function assertPageCounts($path, $counts, $message) {
    * @return \Drupal\taxonomy\TermInterface
    *   The created taxonomy term.
    */
-  protected function createTermWithProperties($properties) {
+  protected function createTermWithProperties(array $properties) {
     // Use the first available text format.
     $filter_formats = filter_formats();
     $format = array_pop($filter_formats);
diff --git a/core/modules/taxonomy/src/VocabularyInterface.php b/core/modules/taxonomy/src/VocabularyInterface.php
index 78b38d7..e6e9e79 100644
--- a/core/modules/taxonomy/src/VocabularyInterface.php
+++ b/core/modules/taxonomy/src/VocabularyInterface.php
@@ -17,7 +17,7 @@
   /**
    * Returns the vocabulary hierarchy.
    *
-   * @return integer
+   * @return int
    *   The vocabulary hierarchy.
    */
   public function getHierarchy();
@@ -25,7 +25,7 @@ public function getHierarchy();
   /**
    * Sets the vocabulary hierarchy.
    *
-   * @param integer $hierarchy
+   * @param int $hierarchy
    *   The hierarchy type of vocabulary.
    *   Possible values:
    *    - TAXONOMY_HIERARCHY_DISABLED: No parents.
diff --git a/core/modules/taxonomy/src/VocabularyStorageInterface.php b/core/modules/taxonomy/src/VocabularyStorageInterface.php
index c6f15f0..ae8ea10 100644
--- a/core/modules/taxonomy/src/VocabularyStorageInterface.php
+++ b/core/modules/taxonomy/src/VocabularyStorageInterface.php
@@ -23,6 +23,6 @@
    * @return array
    *   Array of top-level term IDs.
    */
-  public function getToplevelTids($vids);
+  public function getToplevelTids(array $vids);
 
 }
diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module
index c247d14..5383d78 100644
--- a/core/modules/taxonomy/taxonomy.module
+++ b/core/modules/taxonomy/taxonomy.module
@@ -167,10 +167,10 @@ function taxonomy_theme() {
  *
  * @param \Drupal\taxonomy\VocabularyInterface $vocabulary
  *   A taxonomy vocabulary entity.
- * @param $changed_term
+ * @param array $changed_term
  *   An array of the term structure that was updated.
  *
- * @return
+ * @return int
  *   An integer that represents the level of the vocabulary's hierarchy.
  */
 function taxonomy_check_vocabulary_hierarchy(VocabularyInterface $vocabulary, $changed_term) {
@@ -288,6 +288,8 @@ function template_preprocess_taxonomy_term(&$variables) {
  *
  * @param \Drupal\taxonomy\Entity\Term $term
  *   A taxonomy term entity.
+ *
+ * @return bool
  */
 function taxonomy_term_is_page(Term $term) {
   if (\Drupal::routeMatch()->getRouteName() == 'entity.taxonomy_term.canonical' && $page_term_id = \Drupal::routeMatch()->getRawParameter('taxonomy_term')) {
@@ -408,7 +410,7 @@ function taxonomy_get_tree($vid, $parent = 0, $max_depth = NULL, $load_entities
  * @param $vocabulary
  *   (optional) Vocabulary machine name to limit the search. Defaults to NULL.
  *
- * @return
+ * @return array
  *   An array of matching term objects.
  */
 function taxonomy_term_load_multiple_by_name($name, $vocabulary = NULL) {
@@ -532,7 +534,7 @@ function taxonomy_implode_tags($tags, $vid = NULL) {
 /**
  * Implements hook_field_widget_info_alter().
  */
-function taxonomy_field_widget_info_alter(&$info) {
+function taxonomy_field_widget_info_alter(array &$info) {
   if (isset($info['options_select'])) {
     $info['options_select']['field_types'][] = 'taxonomy_term_reference';
   }
@@ -553,13 +555,13 @@ function taxonomy_field_formatter_info_alter(array &$info) {
 /**
  * Title callback for term pages.
  *
- * @param \Drupal\taxonomy\Entity\Term $term
- *   A taxonomy term entity.
+ * @param \Drupal\taxonomy\TermInterface $term
+ *   The taxonomy term.
  *
- * @return
+ * @return string
  *   The term name to be used as the page title.
  */
-function taxonomy_term_title(Term $term) {
+function taxonomy_term_title(TermInterface $term) {
   return $term->getName();
 }
 
@@ -596,6 +598,9 @@ function taxonomy_autocomplete_validate($element, FormStateInterface $form_state
 
 /**
  * Implements hook_ENTITY_TYPE_insert() for node entities.
+ *
+ * @param \Drupal\Core\Entity\EntityInterface $node
+ *   The node entity.
  */
 function taxonomy_node_insert(EntityInterface $node) {
   // Add taxonomy index entries for the node.
@@ -608,10 +613,10 @@ function taxonomy_node_insert(EntityInterface $node) {
  * The index lists all terms that are related to a given node entity, and is
  * therefore maintained at the entity level.
  *
- * @param \Drupal\node\Entity\Node $node
+ * @param \Drupal\Core\Entity\EntityInterface $node
  *   The node entity.
  */
-function taxonomy_build_node_index($node) {
+function taxonomy_build_node_index(EntityInterface $node) {
   // We maintain a denormalized table of term/node relationships, containing
   // only data for current, published nodes.
   if (!\Drupal::config('taxonomy.settings')->get('maintain_index_table') || !(\Drupal::entityManager()->getStorage('node') instanceof SqlContentEntityStorage)) {
@@ -650,6 +655,8 @@ function taxonomy_build_node_index($node) {
 
 /**
  * Implements hook_ENTITY_TYPE_update() for node entities.
+ * @param \Drupal\Core\Entity\EntityInterface $node
+ *   The node entity.
  */
 function taxonomy_node_update(EntityInterface $node) {
   // Always rebuild the node's taxonomy index entries on node save.
@@ -659,6 +666,9 @@ function taxonomy_node_update(EntityInterface $node) {
 
 /**
  * Implements hook_ENTITY_TYPE_predelete() for node entities.
+ *
+ * @param \Drupal\Core\Entity\EntityInterface $node
+ *   The node entity.
  */
 function taxonomy_node_predelete(EntityInterface $node) {
   // Clean up the {taxonomy_index} table when nodes are deleted.
@@ -679,8 +689,11 @@ function taxonomy_delete_node_index(EntityInterface $node) {
 
 /**
  * Implements hook_ENTITY_TYPE_delete() for taxonomy_term entities.
+ *
+ * @param \Drupal\taxonomy\TermInterface $term
+ *   The taxonomy term.
  */
-function taxonomy_taxonomy_term_delete(Term $term) {
+function taxonomy_taxonomy_term_delete(TermInterface $term) {
   if (\Drupal::config('taxonomy.settings')->get('maintain_index_table')) {
     // Clean up the {taxonomy_index} table when terms are deleted.
     db_delete('taxonomy_index')->condition('tid', $term->id())->execute();
