Skip to content

Commit dffdcec

Browse files
authored
Merge pull request #90 from nawarian/fix-typo-in-readme
Fixes LazyPromise example
2 parents 8f83c59 + 3e44116 commit dffdcec

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)