File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
lib/Phpfastcache/Drivers/Leveldb Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2121class 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+ }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments