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

Fix PHP 8.1 deprecation notices #428

Open
wants to merge 1 commit into
base: 0.x
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},

"require" : {
"php" : ">=5.3.3"
"php" : "^7.0|^8.0"
},

"replace" : {
Expand Down
2 changes: 1 addition & 1 deletion src/Bernard/Queue/InMemoryQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct($name)
/**
* {@inheritDoc}
*/
public function count()
public function count(): int
{
$this->errorIfClosed();

Expand Down
2 changes: 1 addition & 1 deletion src/Bernard/Queue/PersistentQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function register()
/**
* {@inheritDoc}
*/
public function count()
public function count(): int
{
$this->errorIfClosed();

Expand Down
2 changes: 1 addition & 1 deletion src/Bernard/QueueFactory/InMemoryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function all()
/**
* @return integer
*/
public function count()
public function count(): int
{
return count($this->queues);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Bernard/QueueFactory/PersistentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function exists($queueName)
/**
* @return integer
*/
public function count()
public function count(): int
{
return count($this->connection->listQueues());
}
Expand Down