Skip to content

Commit 5b25fc8

Browse files
committed
Fix issue with CacheAlertStream
1 parent b8af1c7 commit 5b25fc8

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/sprinkles/core/src/Alert/CacheAlertStream.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88
namespace UserFrosting\Sprinkle\Core\Alert;
99

10-
use Illuminate\Cache\TaggedCache;
10+
use Illuminate\Cache\Repository as Cache;
1111
use UserFrosting\I18n\MessageTranslator;
1212
use UserFrosting\Support\Repository\Repository;
1313

@@ -23,7 +23,7 @@
2323
class CacheAlertStream extends AlertStream
2424
{
2525
/**
26-
* @var TaggedCache Object We use the cache object so that added messages will automatically appear in the cache.
26+
* @var Cache Object We use the cache object so that added messages will automatically appear in the cache.
2727
*/
2828
protected $cache;
2929

@@ -37,10 +37,10 @@ class CacheAlertStream extends AlertStream
3737
*
3838
* @param string $messagesKey Store the messages under this key
3939
* @param MessageTranslator|null $translator
40-
* @param TaggedCache $cache
40+
* @param Cache $cache
4141
* @param Repository $config
4242
*/
43-
public function __construct($messagesKey, MessageTranslator $translator = null, TaggedCache $cache, Repository $config)
43+
public function __construct($messagesKey, MessageTranslator $translator = null, Cache $cache, Repository $config)
4444
{
4545
$this->cache = $cache;
4646
$this->config = $config;

app/sprinkles/core/src/ServicesProvider/ServicesProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function register(ContainerInterface $container)
149149
/**
150150
* Cache service.
151151
*
152-
* @return \Illuminate\Cache\TaggedCache
152+
* @return \Illuminate\Cache\Repository
153153
*/
154154
$container['cache'] = function ($c) {
155155

0 commit comments

Comments
 (0)