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
144144(i.e. either successfully fulfilled or rejected with an error):
145145
146146``` php
147- $redis->get($key)->then(function (string $value) {
147+ $redis->get($key)->then(function (? string $value) {
148148 var_dump($value);
149149}, function (Exception $e) {
150150 echo 'Error: ' . $e->getMessage() . PHP_EOL;
@@ -541,7 +541,7 @@ Each method call matches the respective [Redis command](https://redis.io/command
541541For example, the ` $redis->get() ` method will invoke the [ ` GET ` command] ( https://redis.io/commands/get ) .
542542
543543``` php
544- $redis->get($key)->then(function (string $value) {
544+ $redis->get($key)->then(function (? string $value) {
545545 var_dump($value);
546546}, function (Exception $e) {
547547 echo 'Error: ' . $e->getMessage() . PHP_EOL;
You can’t perform that action at this time.
0 commit comments