Skip to content

Commit b7cc1e2

Browse files
committed
Fix @type definition
1 parent 78e42aa commit b7cc1e2

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

redisphp.php

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ public function close( ) {}
114114
/**
115115
* Set client option.
116116
*
117-
* @param type $name parameter name
118-
* @param type $value parameter value
119-
* @return BOOL: TRUE on success, FALSE on error.
117+
* @param string $name parameter name
118+
* @param string $value parameter value
119+
* @return bool: TRUE on success, FALSE on error.
120120
* @example
121121
* <pre>
122122
* $redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_NONE); // don't serialize data
@@ -130,8 +130,8 @@ public function setOption( $name, $value ) {}
130130
/**
131131
* Get client option
132132
*
133-
* @param type $name parameter name
134-
* @return Parameter value.
133+
* @param string $name parameter name
134+
* @return Parameter value.
135135
* @example
136136
* // return Redis::SERIALIZER_NONE, Redis::SERIALIZER_PHP, or Redis::SERIALIZER_IGBINARY.
137137
* $redis->getOption(Redis::OPT_SERIALIZER);
@@ -141,7 +141,7 @@ public function getOption( $name ) {}
141141
/**
142142
* Check the current connection status
143143
*
144-
* @return string STRING: +PONG on success. Throws a RedisException object on connectivity error, as described above.
144+
* @return string STRING: +PONG on success. Throws a RedisException object on connectivity error, as described above.
145145
* @link http://redis.io/commands/ping
146146
*/
147147
public function ping( ) {}
@@ -150,8 +150,8 @@ public function ping( ) {}
150150
/**
151151
* Get the value related to the specified key
152152
*
153-
* @param type $key
154-
* @return string|bool: If key didn't exist, FALSE is returned. Otherwise, the value related to this key is returned.
153+
* @param string $key
154+
* @return string|bool: If key didn't exist, FALSE is returned. Otherwise, the value related to this key is returned.
155155
* @link http://redis.io/commands/get
156156
* @example $redis->get('key');
157157
*/
@@ -161,10 +161,10 @@ public function get( $key ) {}
161161
/**
162162
* Set the string value in argument as value of the key.
163163
*
164-
* @param string $key
165-
* @param string $value
166-
* @param float $timeout Calling setex() is preferred if you want a timeout.
167-
* @return bool TRUE if the command is successful.
164+
* @param string $key
165+
* @param string $value
166+
* @param float $timeout Calling setex() is preferred if you want a timeout.
167+
* @return bool: TRUE if the command is successful.
168168
* @link http://redis.io/commands/set
169169
* @example $redis->set('key', 'value');
170170
*/
@@ -173,21 +173,21 @@ public function set( $key, $value, $timeout = 0.0 ) {}
173173
/**
174174
* Set the string value in argument as value of the key, with a time to live.
175175
*
176-
* @param string $key
177-
* @param int $ttl
178-
* @param type $value
179-
* @return Bool TRUE if the command is successful.
176+
* @param string $key
177+
* @param int $ttl
178+
* @param string $value
179+
* @return bool: TRUE if the command is successful.
180180
* @link http://redis.io/commands/setex
181-
* @example $redis->setex('key', 3600, 'value'); // sets key → value, with 1h TTL.
181+
* @example $redis->setex('key', 3600, 'value'); // sets key → value, with 1h TTL.
182182
*/
183183
public function setex( $key, $ttl, $value ) {}
184184

185185
/**
186186
* Set the string value in argument as value of the key if the key doesn't already exist in the database.
187187
*
188-
* @param type $key
189-
* @param type $value
190-
* @return Bool TRUE in case of success, FALSE in case of failure.
188+
* @param string $key
189+
* @param string $value
190+
* @return bool: TRUE in case of success, FALSE in case of failure.
191191
* @link http://redis.io/commands/setnx
192192
* @example
193193
* <pre>
@@ -1566,9 +1566,9 @@ public function getRange( $key, $start, $end ) {}
15661566
* Return a substring of a larger string
15671567
*
15681568
* @deprecated
1569-
* @param type $key
1570-
* @param type $start
1571-
* @param type $end
1569+
* @param string $key
1570+
* @param int $start
1571+
* @param int $end
15721572
*/
15731573
public function substr( $key, $start, $end ) {}
15741574

0 commit comments

Comments
 (0)