Skip to content

Commit 6ddf463

Browse files
committed
Deprecated Wincache for removal at v10
1 parent 4424ffc commit 6ddf463

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

lib/Phpfastcache/Drivers/Wincache/Config.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@
1818

1919
use Phpfastcache\Config\ConfigurationOption;
2020

21+
/**
22+
* @deprecated will be removed as of v10 due to the lack of updates to PHP8 as officially stated by PHP: https://www.php.net/manual/en/install.windows.recommended.php
23+
*/
2124
class Config extends ConfigurationOption
2225
{
26+
public function __construct(array $parameters = [])
27+
{
28+
trigger_error(
29+
'Wincache is now deprecated and will be removed as of v10 due to the lack of updates to PHP8 as officially stated by PHP:
30+
https://www.php.net/manual/en/install.windows.recommended.php',
31+
E_USER_DEPRECATED
32+
);
33+
parent::__construct($parameters);
34+
}
2335
}

lib/Phpfastcache/Drivers/Wincache/Driver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use Phpfastcache\Exceptions\PhpfastcacheLogicException;
2727

2828
/**
29+
* @deprecated will be removed as of v10 due to the lack of updates to PHP8 as officially stated by PHP: https://www.php.net/manual/en/install.windows.recommended.php
2930
* @method Config getConfig()
3031
*/
3132
class Driver implements AggregatablePoolInterface

lib/Phpfastcache/Drivers/Wincache/Item.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
use Phpfastcache\Core\Item\ExtendedCacheItemInterface;
2020
use Phpfastcache\Core\Item\TaggableCacheItemTrait;
2121

22+
/**
23+
* @deprecated will be removed as of v10 due to the lack of updates to PHP8 as officially stated by PHP: https://www.php.net/manual/en/install.windows.recommended.php
24+
*/
2225
class Item implements ExtendedCacheItemInterface
2326
{
2427
use TaggableCacheItemTrait;

0 commit comments

Comments
 (0)