File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
lib/Phpfastcache/Drivers/Redis Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ class Config extends ConfigurationOption
3232 protected $ port = 6379 ;
3333
3434 /**
35- * @var string
35+ * @var null| string
3636 */
3737 protected $ password = '' ;
3838
3939 /**
40- * @var int
40+ * @var null| int
4141 */
4242 protected $ database = 0 ;
4343
@@ -93,36 +93,38 @@ public function setPort(int $port): self
9393 }
9494
9595 /**
96- * @return mixed
96+ * @return null|string
9797 */
9898 public function getPassword ()
9999 {
100100 return $ this ->password ;
101101 }
102102
103103 /**
104- * @param string $password
104+ * @param string|null $password
105+ *
105106 * @return self
106107 */
107- public function setPassword (string $ password ): self
108+ public function setPassword (string $ password = null ): self
108109 {
109110 $ this ->password = $ password ;
110111 return $ this ;
111112 }
112113
113114 /**
114- * @return int
115+ * @return null| int
115116 */
116- public function getDatabase (): int
117+ public function getDatabase (): ? int
117118 {
118119 return $ this ->database ;
119120 }
120121
121122 /**
122- * @param int $database
123+ * @param int|null $database
124+ *
123125 * @return self
124126 */
125- public function setDatabase (int $ database ): self
127+ public function setDatabase (int $ database = null ): self
126128 {
127129 $ this ->database = $ database ;
128130 return $ this ;
You can’t perform that action at this time.
0 commit comments