$this of type Glorand\Model\Settings\Traits\HasSettingsRedis is incompatible with the type Illuminate\Database\Eloquent\Model expected by parameter $model of Glorand\Model\Settings\M...sManager::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
25
return new RedisSettingsManager(/** @scrutinizer ignore-type */ $this);
Loading history...
26
}
27
28
36
public function getSettingsValue(): array
29
{
30
36
$redisValue = Redis::get($this->cacheKey());
31
32
36
return Arr::wrap(json_decode($redisValue, true));
33
}
34
35
36
public function cacheKey(string $key = null): string