mirror of
https://github.com/symfony/cache.git
synced 2026-03-23 23:22:07 +01:00
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:
@@ -314,6 +314,9 @@ class TagAwareAdapter implements TagAwareAdapterInterface, TagAwareCacheInterfac
|
||||
return $this->invalidateTags([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function __sleep()
|
||||
{
|
||||
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
|
||||
|
||||
@@ -48,6 +48,8 @@ class DoctrineProvider extends CacheProvider implements PruneableInterface, Rese
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
protected function doFetch($id)
|
||||
{
|
||||
|
||||
@@ -315,6 +315,9 @@ trait AbstractAdapterTrait
|
||||
$this->ids = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function __sleep()
|
||||
{
|
||||
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
|
||||
|
||||
Reference in New Issue
Block a user