Skip to content

Commit 3e44116

Browse files
committed
Fixes LazyPromise example
1 parent 8f83c59 commit 3e44116

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ $factory = function () {
375375
return $deferred->promise();
376376
};
377377

378-
$promise = React\Promise\LazyPromise($factory);
378+
$promise = new React\Promise\LazyPromise($factory);
379379

380380
// $factory will only be executed once we call then()
381381
$promise->then(function ($value) {

0 commit comments

Comments
 (0)