Skip to content

Commit

Permalink
Merge branch '1.5' into 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Feb 23, 2021
2 parents ba02f5e + 69f3467 commit 37854ee
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Caching/ProxyCacheAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ public function __construct(CacheInterface $pool)
$this->pool = $pool;
}

/**
* Do not serialize() `$this->pool` because it may contain a non-serializable cache.
* For instance, Symfony\Component\Cache\Simple\FilesystemCache cannot be serialized because in will throw an
* exception in Symfony\Component\Cache\Traits\FilesystemCommonTrait::__sleep()
*
* @return array
*/
public function __sleep()
{
return [];
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 37854ee

Please sign in to comment.