Skip to content

Commit

Permalink
Merge pull request #15 from holtkamp/patch-1
Browse files Browse the repository at this point in the history
Fix small typo's in PHPDoc
  • Loading branch information
clue authored Nov 29, 2019
2 parents 118aede + 5b80a9f commit 2192293
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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'));
}
Expand Down

0 comments on commit 2192293

Please sign in to comment.