Skip to content

Commit

Permalink
fix: dynamic properties
Browse files Browse the repository at this point in the history
  • Loading branch information
JoyceBabu committed Jun 12, 2023
1 parent 4419022 commit d49a657
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/Snowflake/Store/FileStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

class FileStore implements StoreInterface
{
public function __construct($cacheDir)
private string $cacheDir;
public function __construct(string $cacheDir)
{
$this->cacheDir = $cacheDir;

Expand Down
6 changes: 3 additions & 3 deletions src/Snowflake/Store/RedisStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

class RedisStore implements StoreInterface
{
private $backend;
public function __construct(\Redis $redis)
private \Redis $backend;
public function __construct(\Redis $backend)
{
$this->backend = $redis;
$this->backend = $backend;
}

private function getLuaScript()
Expand Down

0 comments on commit d49a657

Please sign in to comment.