-
-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationeasy pick
Milestone
Description
Hi
first of all: great project! thanks for that
It is about the following code (under Promises in the documentation):
$redis->get($key)->then(function (string $value) {
var_dump($value);
}, function (Exception $e) {
echo 'Error: ' . $e->getMessage() . PHP_EOL;
});
the problem is if the key doesn't exist, the returned value is NULL. therefore nothing will happen because a string-value is expected in the function.
SimonFrings
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationeasy pick