From 7a6519989c7286db999562a68a682b6d6be16a3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 28 Jul 2023 22:40:30 +0200 Subject: [PATCH 1/2] Fix a typo in QueueAllTest --- tests/QueueAllTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/QueueAllTest.php b/tests/QueueAllTest.php index 78df102..31f2026 100644 --- a/tests/QueueAllTest.php +++ b/tests/QueueAllTest.php @@ -20,7 +20,7 @@ public function testAllRejectsIfHandlerIsInvalid() Queue::all(1, array(), 'foobar')->then(null, $this->expectCallableOnce()); } - public function testWillResolveWithtEmptyArrayWithoutInvokingHandlerWhenJobsAreEmpty() + public function testWillResolveWithEmptyArrayWithoutInvokingHandlerWhenJobsAreEmpty() { $promise = Queue::all(1, array(), $this->expectCallableNever()); From f25d73df9825852220dcb81c8acf2465a06dbe09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sat, 29 Jul 2023 09:46:29 +0000 Subject: [PATCH 2/2] Fix "occured" typo --- README.md | 2 +- examples/02-http-all.php | 2 +- examples/03-http-any.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 10c0999..bc4add1 100644 --- a/README.md +++ b/README.md @@ -441,7 +441,7 @@ try { $responses = await($promise); // responses successfully received } catch (Exception $e) { - // an error occured while performing the requests + // an error occurred while performing the requests } ``` diff --git a/examples/02-http-all.php b/examples/02-http-all.php index 3eaf0bd..0cda97c 100644 --- a/examples/02-http-all.php +++ b/examples/02-http-all.php @@ -29,7 +29,7 @@ function ($responses) { } }, function ($e) { - echo 'An error occured: ' . $e->getMessage() . PHP_EOL; + echo 'An error occurred: ' . $e->getMessage() . PHP_EOL; } ); diff --git a/examples/03-http-any.php b/examples/03-http-any.php index 9f96e8c..8093774 100644 --- a/examples/03-http-any.php +++ b/examples/03-http-any.php @@ -31,7 +31,7 @@ function ($url) { echo 'First successful URL is ' . $url . PHP_EOL; }, function ($e) { - echo 'An error occured: ' . $e->getMessage() . PHP_EOL; + echo 'An error occurred: ' . $e->getMessage() . PHP_EOL; } );