Skip to content

Commit 4b1940e

Browse files
authored
Merge pull request #841 from Geolim4/v8
Fixed #840
2 parents 3d22dfb + ff5b130 commit 4b1940e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/Phpfastcache/Drivers/Leveldb/Config.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,25 @@
2121
class Config extends ConfigurationOption
2222
{
2323
/**
24-
* @var string
24+
* @var bool
2525
*/
2626
protected $htaccess = true;
2727

2828
/**
29-
* @return string
29+
* @return bool
3030
*/
31-
public function getHtaccess(): string
31+
public function getHtaccess(): bool
3232
{
3333
return $this->htaccess;
3434
}
3535

3636
/**
37-
* @param string $htaccess
37+
* @param bool $htaccess
3838
* @return self
3939
*/
40-
public function setHtaccess(string $htaccess): self
40+
public function setHtaccess(bool $htaccess): self
4141
{
4242
$this->htaccess = $htaccess;
4343
return $this;
4444
}
45-
}
45+
}

lib/Phpfastcache/Drivers/Leveldb/Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function __destruct()
6363
protected function driverRead(CacheItemInterface $item)
6464
{
6565
$val = $this->instance->get($item->getKey());
66-
if ($val == false) {
66+
if (!$val) {
6767
return null;
6868
}
6969

0 commit comments

Comments
 (0)