1 | <?php |
||
7 | class PredisSentinelConnection extends PredisConnection |
||
8 | { |
||
9 | /** |
||
10 | * Execute commands in a transaction. Avoids use of Predis transaction |
||
11 | * which does not support aggregate connections. Mirrors implementation |
||
12 | * of PhpRedisConnection::transaction() in core Framework. |
||
13 | * |
||
14 | * @param callable $callback |
||
|
|||
15 | * @return \Redis|array |
||
16 | */ |
||
17 | public function transaction(callable $callback = null) |
||
25 | } |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive. In addition it looks for parameters that have the generic type
array
and suggests a stricter type likearray<String>
.Most often this is a case of a parameter that can be null in addition to its declared types.