From 5b80a9f3160d262647d5082c399c71620ad2f73c Mon Sep 17 00:00:00 2001 From: Menno Holtkamp Date: Sat, 2 Jun 2018 12:56:39 +0200 Subject: [PATCH] Fix small typo's in PHPDoc --- README.md | 2 +- src/Queue.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index af93eb1..e3affe9 100644 --- a/README.md +++ b/README.md @@ -314,7 +314,7 @@ empty array without processing any jobs. The `$handler` parameter must be a valid callable that accepts your job parameters, invokes the appropriate operation and returns a Promise as a placeholder for its future result. If the given argument is not a valid -callable, this method will reject with an `InvalidArgumentExceptionn` +callable, this method will reject with an `InvalidArgumentException` without processing any jobs. ```php diff --git a/src/Queue.php b/src/Queue.php index 6b21014..700ea2d 100644 --- a/src/Queue.php +++ b/src/Queue.php @@ -18,7 +18,7 @@ * immediately. If you keep adding new jobs to the queue and its concurrency limit * is reached, it will not start a new operation and instead queue this for future * execution. Once one of the pending operations complete, it will pick the next - * job from the qeueue and execute this operation. + * job from the queue and execute this operation. */ class Queue implements \Countable { @@ -84,7 +84,7 @@ class Queue implements \Countable * The `$handler` parameter must be a valid callable that accepts your job * parameters, invokes the appropriate operation and returns a Promise as a * placeholder for its future result. If the given argument is not a valid - * callable, this method will reject with an `InvalidArgumentExceptionn` + * callable, this method will reject with an `InvalidArgumentException` * without processing any jobs. * * ```php @@ -237,7 +237,7 @@ public function __invoke() ); } - // we're currently above concurreny limit, make sure we do not exceed maximum queue limit + // we're currently above concurrency limit, make sure we do not exceed maximum queue limit if ($this->limit !== null && $this->count() >= $this->limit) { return Promise\reject(new \OverflowException('Maximum queue limit of ' . $this->limit . ' exceeded')); }