Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 53.11.1 #3917

Merged
merged 3 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions models/classes/taskQueue/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,8 @@ public function acknowledge(TaskInterface $task)

/**
* Count of messages in the queue.
*
* @return int
*/
public function count()
public function count(): int
{
return $this->getBroker()->count();
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/model/taskQueue/QueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function testCountShouldCallCountOnBroker()
$queueBrokerMock = $this->getMockForAbstractClass(QueueBrokerInterface::class);

$queueBrokerMock->expects($this->once())
->method('count');
->method('count')->willReturn(1);

/** @var Queue|MockObject $queueMock */
$queueMock = $this->getMockBuilder(Queue::class)
Expand Down
Loading