Commit d895e15a authored by Damian Lee's avatar Damian Lee
Browse files

Fix docblock and typehint stdClass for MemcacheBackend::valid

parent d95db90b
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -116,9 +116,18 @@ class MemcacheBackend implements CacheBackendInterface {
  }

  /**
   * {@inheritdoc}
   * Determines if the cache item is valid.
   *
   * This also alters the valid property of the cache item itself.
   *
   * @param string $cid
   *   The cache ID.
   * @param \stdClass $cache
   *   The cache item.
   *
   * @return bool
   */
  protected function valid($cid, $cache) {
  protected function valid($cid, \stdClass $cache) {
    $lock_key = "memcache_$cid:$this->bin";
    $cache->valid = FALSE;