From 822835f04c4689ced0fe2057cb3a8b83aba98493 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Sun, 12 Apr 2015 10:56:24 +0100
Subject: [PATCH] Issue #2466917 by jhedstrom:
 DatabaseCacheTagsChecksum::calculateChecksum() has incorrect documentation

---
 .../Drupal/Core/Cache/DatabaseCacheTagsChecksum.php    | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php b/core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php
index b6d9161b4e49..cc882eead164 100644
--- a/core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php
+++ b/core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php
@@ -99,9 +99,15 @@ public function isValid($checksum, array $tags) {
   }
 
   /**
-   * {@inheritdoc}
+   * Calculates the current checksum for a given set of tags.
+   *
+   * @param array $tags
+   *   The array of tags to calculate the checksum for.
+   *
+   * @return int
+   *   The calculated checksum.
    */
-  public function calculateChecksum(array $tags) {
+  protected function calculateChecksum(array $tags) {
     $checksum = 0;
 
     $query_tags = array_diff($tags, array_keys($this->tagCache));
-- 
GitLab