Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Taggable/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/Taggable/TaggablePSR6PoolAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ class TaggablePSR6PoolAdapter implements TaggableCacheItemPoolInterface
/**
* @type CacheItemPoolInterface
*/
private $cachePool;
protected $cachePool;

/**
* @type CacheItemPoolInterface
*/
private $tagStorePool;
protected $tagStorePool;

/**
* @param CacheItemPoolInterface $cachePool
Expand Down Expand Up @@ -75,7 +75,7 @@ public static function makeTaggable(CacheItemPoolInterface $cachePool, CacheItem
return $cachePool;
}

return new self($cachePool, $tagStorePool);
return new static($cachePool, $tagStorePool);
}

/**
Expand Down