Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzadamodassir authored Nov 14, 2024
1 parent 0685e8e commit 21c7ce0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ use Modassir\Promise\Promise;
});

(new Promise(function($resolve, $reject) {
call_undfined_function();
$resolve('success');
$reject('An error accurred.');
call_undfined_function();
}))->then(function() {

})->catch(function($res) {
Expand Down Expand Up @@ -85,9 +85,9 @@ $promise->then(function($res) {
});

$promise = new Promise(function($resolve, $reject) {
call_undfined_function();
$resolve('success');
$reject('An error accurred.');
call_undfined_function();
});

$promise->then(function() {
Expand Down

0 comments on commit 21c7ce0

Please sign in to comment.