Merge branch '4.4' into 5.2

* 4.4:
  [4.4] Add missing `@return` annotations
  Handle lock with long key
This commit is contained in:
Nicolas Grekas
2021-07-23 17:54:19 +02:00
3 changed files with 8 additions and 0 deletions

View File

@@ -314,6 +314,9 @@ class TagAwareAdapter implements TagAwareAdapterInterface, TagAwareCacheInterfac
return $this->invalidateTags([]);
}
/**
* @return array
*/
public function __sleep()
{
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);

View File

@@ -48,6 +48,8 @@ class DoctrineProvider extends CacheProvider implements PruneableInterface, Rese
/**
* {@inheritdoc}
*
* @return mixed
*/
protected function doFetch($id)
{

View File

@@ -315,6 +315,9 @@ trait AbstractAdapterTrait
$this->ids = [];
}
/**
* @return array
*/
public function __sleep()
{
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);