Skip to content

Commit

Permalink
Merge pull request #5 from gyselroth/dev
Browse files Browse the repository at this point in the history
updates v2.0.5
  • Loading branch information
raffis authored Jul 19, 2018
2 parents 965c818 + b835b2b commit 26ddeab
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

* [CHANGE] Scheduler::cancelJob() not throws Exception\JobNotFound if job was not found
* [FIX] Fixed driver version (mongodb >= 1.5.0) support for ServerException along ConnectionException to create collection if not propperly setup
* [FIX] Use collection_name from options instead static queue in getCursor()
* [CHANGE] Extended phpstan level to 5


## 2.0.4
Expand Down
4 changes: 1 addition & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ parameters:
autoload_directories:
- %rootDir%/../../../src
- %rootDir%/../../../tests
ignoreErrors:
- '#^Class MongoDB\\BSON\\UTCDateTime constructor invoked with 0 parameters, 1 required\.#'

includes:
- vendor/phpstan/phpstan/conf/config.level1.neon
- vendor/phpstan/phpstan/conf/config.level4.neon
6 changes: 3 additions & 3 deletions src/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Queue
/**
* Current processing job.
*
* @var array
* @var null|array
*/
protected $current_job;

Expand Down Expand Up @@ -276,9 +276,9 @@ protected function convertQueue(): self
/**
* Retrieve next job.
*
* @param iterable $cursor
* @param IteratorIterator $cursor
*/
protected function retrieveNextJob(Iterable $cursor)
protected function retrieveNextJob(IteratorIterator $cursor)
{
try {
$cursor->next();
Expand Down
2 changes: 1 addition & 1 deletion src/Scheduler.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public function addJobOnce(string $class, $data, array $options = []): ObjectId
],
];

$result = $this->db->queue->findOne($filter, [
$result = $this->db->{$this->collection_name}->findOne($filter, [
'typeMap' => self::TYPE_MAP,
]);

Expand Down

0 comments on commit 26ddeab

Please sign in to comment.