diff --git a/README.md b/README.md index 7a46326..4195312 100644 --- a/README.md +++ b/README.md @@ -150,7 +150,7 @@ $factory->createClient($url)->then( // client connected (and authenticated) }, function (Exception $e) { - // an error occured while trying to connect or authorize client + // an error occurred while trying to connect or authorize client } ); ``` @@ -355,7 +355,7 @@ $sender->ping()->then( // response received for ping action }, function (Exception $e) { - // an error occured while executing the action + // an error occurred while executing the action if ($e instanceof Clue\React\Ami\Protocol\ErrorException) { // we received a valid error response (such as authorization error) diff --git a/src/Factory.php b/src/Factory.php index 5345283..1169a27 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -64,7 +64,7 @@ public function __construct(LoopInterface $loop = null, ConnectorInterface $conn * // client connected (and authenticated) * }, * function (Exception $e) { - * // an error occured while trying to connect or authorize client + * // an error occurred while trying to connect or authorize client * } * ); * ``` diff --git a/tests/ActionSenderTest.php b/tests/ActionSenderTest.php index f1801c7..12af822 100644 --- a/tests/ActionSenderTest.php +++ b/tests/ActionSenderTest.php @@ -23,7 +23,7 @@ public function testCollectingSIPEvents() $promise = $collector->sipPeers(); - // save resolved result for comparisions + // save resolved result for comparisons $resolved = null; $promise->then(function($result) use (&$resolved) { $resolved = $result;