Skip to content

Commit d49a657

Browse files
committed
fix: dynamic properties
1 parent 4419022 commit d49a657

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Snowflake/Store/FileStore.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
class FileStore implements StoreInterface
99
{
10-
public function __construct($cacheDir)
10+
private string $cacheDir;
11+
public function __construct(string $cacheDir)
1112
{
1213
$this->cacheDir = $cacheDir;
1314

src/Snowflake/Store/RedisStore.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
class RedisStore implements StoreInterface
99
{
10-
private $backend;
11-
public function __construct(\Redis $redis)
10+
private \Redis $backend;
11+
public function __construct(\Redis $backend)
1212
{
13-
$this->backend = $redis;
13+
$this->backend = $backend;
1414
}
1515

1616
private function getLuaScript()

0 commit comments

Comments
 (0)