Skip to content

Commit

Permalink
Merge pull request #90 from nawarian/fix-typo-in-readme
Browse files Browse the repository at this point in the history
Fixes LazyPromise example
  • Loading branch information
jsor committed Feb 24, 2017
2 parents 8f83c59 + 3e44116 commit dffdcec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ $factory = function () {
return $deferred->promise();
};

$promise = React\Promise\LazyPromise($factory);
$promise = new React\Promise\LazyPromise($factory);

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

0 comments on commit dffdcec

Please sign in to comment.