Skip to content

Commit 5b80a9f

Browse files
committed
Fix small typo's in PHPDoc
1 parent 118aede commit 5b80a9f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ empty array without processing any jobs.
314314
The `$handler` parameter must be a valid callable that accepts your job
315315
parameters, invokes the appropriate operation and returns a Promise as a
316316
placeholder for its future result. If the given argument is not a valid
317-
callable, this method will reject with an `InvalidArgumentExceptionn`
317+
callable, this method will reject with an `InvalidArgumentException`
318318
without processing any jobs.
319319

320320
```php

src/Queue.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* immediately. If you keep adding new jobs to the queue and its concurrency limit
1919
* is reached, it will not start a new operation and instead queue this for future
2020
* execution. Once one of the pending operations complete, it will pick the next
21-
* job from the qeueue and execute this operation.
21+
* job from the queue and execute this operation.
2222
*/
2323
class Queue implements \Countable
2424
{
@@ -84,7 +84,7 @@ class Queue implements \Countable
8484
* The `$handler` parameter must be a valid callable that accepts your job
8585
* parameters, invokes the appropriate operation and returns a Promise as a
8686
* placeholder for its future result. If the given argument is not a valid
87-
* callable, this method will reject with an `InvalidArgumentExceptionn`
87+
* callable, this method will reject with an `InvalidArgumentException`
8888
* without processing any jobs.
8989
*
9090
* ```php
@@ -237,7 +237,7 @@ public function __invoke()
237237
);
238238
}
239239

240-
// we're currently above concurreny limit, make sure we do not exceed maximum queue limit
240+
// we're currently above concurrency limit, make sure we do not exceed maximum queue limit
241241
if ($this->limit !== null && $this->count() >= $this->limit) {
242242
return Promise\reject(new \OverflowException('Maximum queue limit of ' . $this->limit . ' exceeded'));
243243
}

0 commit comments

Comments
 (0)