File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ interface that makes it easy to react to when a command is completed
144
144
(i.e. either successfully fulfilled or rejected with an error):
145
145
146
146
``` php
147
- $redis->get($key)->then(function (string $value) {
147
+ $redis->get($key)->then(function (? string $value) {
148
148
var_dump($value);
149
149
}, function (Exception $e) {
150
150
echo 'Error: ' . $e->getMessage() . PHP_EOL;
@@ -541,7 +541,7 @@ Each method call matches the respective [Redis command](https://redis.io/command
541
541
For example, the ` $redis->get() ` method will invoke the [ ` GET ` command] ( https://redis.io/commands/get ) .
542
542
543
543
``` php
544
- $redis->get($key)->then(function (string $value) {
544
+ $redis->get($key)->then(function (? string $value) {
545
545
var_dump($value);
546
546
}, function (Exception $e) {
547
547
echo 'Error: ' . $e->getMessage() . PHP_EOL;
You can’t perform that action at this time.
0 commit comments