Skip to content

Commit a2f3283

Browse files
committed
Updated changelog & upgraded API version + some small fixes
1 parent c38927f commit a2f3283

File tree

22 files changed

+127
-104
lines changed

22 files changed

+127
-104
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
## 9.1.0
2-
##### xx april 2022
2+
##### 04 april 2022
3+
- __API__
4+
- Upgraded Phpfastcache API to `4.1.0` ([see changes](CHANGELOG_API.md))
35
- __Core__
46
- Deprecated `\Phpfastcache\Config\Config::class`
7+
- Removed/reworked/improved dead/unreachable/redundant/obsolete code, thanks to `Phpstan`
58
- __Drivers__
69
- **Added `Solr` driver support**
710
- __Cluster__
@@ -40,7 +43,7 @@
4043
- __PSR-16__
4144
- Upgraded `psr/simple-cache` dependency to `^2.0||^3.0` (for PHP-8 types)
4245
- __API__
43-
- Upgraded Phpfastcache API `4.0.0` ([see changes](CHANGELOG_API.md))
46+
- Upgraded Phpfastcache API to `4.0.0` ([see changes](CHANGELOG_API.md))
4447
- Renamed `Api::getPhpFastCacheVersion()` to `Api::getPhpfastcacheVersion()`
4548
- Renamed `Api::getPhpFastCacheChangelog()` to `Api::getPhpfastcacheChangelog()`
4649
- Renamed `Api::getPhpFastCacheGitHeadHash()` to `Api::getPhpfastcacheGitHeadHash()`

CHANGELOG_API.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 4.1.0
2+
- Extended `CacheItemPoolInterface::save()` with `ExtendedCacheItemPoolInterface::save()` for re-typing
3+
- Method `ExtendedCacheItemPoolInterface::getConfig()` now returns `ConfigurationOptionInterface` instead of `ConfigurationOption`
4+
- Method `ExtendedCacheItemPoolInterface::getDefaultConfig()` now returns `ConfigurationOptionInterface` instead of `ConfigurationOption`
5+
- Method `EventManagerInterface::getInstance()` now returns `EventManagerInterface` instead of `static`
6+
17
## 4.0.0
28
- **[BC Break]** Upgraded `psr/cache` dependency to `^3.0` which required `ExtendedCacheItemPoolInterface` and `ExtendedCacheItemInterface` updates
39
- **[BC Break]** Increased minimum PHP compatibility to `^8.0` which also required `TaggableCacheItemPoolInterface` and `TaggableCacheItemInterface` updates

README.md

Lines changed: 74 additions & 74 deletions
Large diffs are not rendered by default.

lib/Phpfastcache/Api.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121

2222
/**
2323
* Class Api
24-
* @package phpFastCache
24+
* @package Phpfastcache
2525
*/
2626
class Api
2727
{
28-
protected static string $version = '4.0.0';
28+
protected static string $version = '4.1.0';
2929

3030
/**
3131
* Api constructor.

lib/Phpfastcache/Cluster/AggregatablePoolInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
*
5-
* This file is part of phpFastCache.
5+
* This file is part of Phpfastcache.
66
*
77
* @license MIT License (MIT)
88
*

lib/Phpfastcache/Cluster/AggregatorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
*
5-
* This file is part of phpFastCache.
5+
* This file is part of Phpfastcache.
66
*
77
* @license MIT License (MIT)
88
*

lib/Phpfastcache/Cluster/ClusterAggregator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
*
5-
* This file is part of phpFastCache.
5+
* This file is part of Phpfastcache.
66
*
77
* @license MIT License (MIT)
88
*

lib/Phpfastcache/Cluster/ClusterPoolAbstract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
*
5-
* This file is part of phpFastCache.
5+
* This file is part of Phpfastcache.
66
*
77
* @license MIT License (MIT)
88
*
@@ -182,7 +182,7 @@ protected function getStandardizedItem(ExtendedCacheItemInterface $item, Extende
182182
*/
183183
if ($driverPool === $this) {
184184
/** @var ExtendedCacheItemInterface $itemPool */
185-
$itemClass = $driverPool->getItemClass();
185+
$itemClass = $driverPool::getItemClass();
186186
$itemPool = new $itemClass($this, $item->getKey(), $this->getEventManager());
187187
$item->cloneInto($itemPool, $driverPool);
188188

lib/Phpfastcache/Cluster/ClusterPoolInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
*
5-
* This file is part of phpFastCache.
5+
* This file is part of Phpfastcache.
66
*
77
* @license MIT License (MIT)
88
*

lib/Phpfastcache/Cluster/ClusterPoolTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
*
5-
* This file is part of phpFastCache.
5+
* This file is part of Phpfastcache.
66
*
77
* @license MIT License (MIT)
88
*

0 commit comments

Comments
 (0)