Skip to content

Commit 5c777af

Browse files
authored
Merge pull request #121 from holtkamp/patch-1
Properly instantiate LazyPromise
2 parents 308b916 + ae9028c commit 5c777af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ $factory = function () {
442442
return $deferred->promise();
443443
};
444444

445-
$promise = React\Promise\LazyPromise($factory);
445+
$promise = new React\Promise\LazyPromise($factory);
446446

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

0 commit comments

Comments
 (0)