diff --git a/src/Taggable/Changelog.md b/src/Taggable/Changelog.md index ab36a67a..e7f540e0 100644 --- a/src/Taggable/Changelog.md +++ b/src/Taggable/Changelog.md @@ -3,7 +3,9 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release. ## UNRELEASED - +###Changed +* Use late static binding when creating a new instance +* Allow access to the pools ## 1.0.0 ### Added diff --git a/src/Taggable/TaggablePSR6PoolAdapter.php b/src/Taggable/TaggablePSR6PoolAdapter.php index 3c784f4f..7f54e530 100644 --- a/src/Taggable/TaggablePSR6PoolAdapter.php +++ b/src/Taggable/TaggablePSR6PoolAdapter.php @@ -42,12 +42,12 @@ class TaggablePSR6PoolAdapter implements TaggableCacheItemPoolInterface /** * @type CacheItemPoolInterface */ - private $cachePool; + protected $cachePool; /** * @type CacheItemPoolInterface */ - private $tagStorePool; + protected $tagStorePool; /** * @param CacheItemPoolInterface $cachePool @@ -75,7 +75,7 @@ public static function makeTaggable(CacheItemPoolInterface $cachePool, CacheItem return $cachePool; } - return new self($cachePool, $tagStorePool); + return new static($cachePool, $tagStorePool); } /**