Skip to content

Commit

Permalink
fix(Core): ( issue slimkit/plus-small-screen-client#345 ) Fixed cache…
Browse files Browse the repository at this point in the history
… get data type not is int
  • Loading branch information
medz committed Apr 13, 2018
1 parent e82ba7d commit 9c904a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Repository/WalletRatio.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct(CacheRepository $cache)
public function get(): int
{
if ($this->cache->has($this->cacheKey())) {
return $this->cache->get($this->cacheKey());
return (int) $this->cache->get($this->cacheKey());
}

$model = CommonConfig::firstOrCreate(
Expand Down

0 comments on commit 9c904a4

Please sign in to comment.