Skip to content

Commit

Permalink
Merge 9f517b7 into 1702fd5
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k committed Jan 15, 2020
2 parents 1702fd5 + 9f517b7 commit 3ee18ca
Show file tree
Hide file tree
Showing 20 changed files with 27 additions and 30 deletions.
17 changes: 7 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,26 @@ branches:
matrix:
fast_finish: true
include:
- php: 7.4
- php: 7.3
- php: 7.2
- php: 7.1
- php: 7.0
- php: 5.6
- php: 5.5
dist: trusty
- php: 5.5
- php: 7.1
dist: trusty
env: SYMFONY_VERSION=2.7.*
- php: 5.5
- php: 7.1
dist: trusty
env: SYMFONY_VERSION=2.8.*
- php: 5.5
- php: 7.1
dist: trusty
env: SYMFONY_VERSION=3.0.*
- php: 5.5
- php: 7.1
dist: trusty
env: PREDIS_VERSION=1.0.*
- php: 5.5
- php: 7.1
dist: trusty
env: PREDIS_VERSION=1.1.*
- php: 5.6
- php: 7.2
env: PUBSUB_PREDIS_VERSION=2.0.*

before_install:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
}
},
"require": {
"php": ">=5.5.0"
"php": ">=7.1.0"
},
"require-dev": {
"psr/container": "~1.0",
"psr/log": "~1.0",
"symfony/dependency-injection": "~2.3|~3.0",
"symfony/serializer": "~2.3|~3.0",
"predis/predis": "~1.0|~1.1",
"phpunit/phpunit": "^4.8.36",
"phpunit/phpunit": "^7.0|^8.2",
"scrutinizer/ocular": "~1.3",
"php-coveralls/php-coveralls": "^1.0"
}
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Queue/Pull/MemoryUniquePullCommandQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function publish(Command $command)
$index = array_search($command, $this->commands);

// remove exists command and publish it again
if ($index !== false) {
if (false !== $index) {
unset($this->commands[$index]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function unsubscribe(callable $handler)
{
$index = array_search($handler, $this->handlers);

if ($index === false) {
if (false === $index) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function unsubscribe(callable $handler)
{
$index = array_search($handler, $this->handlers);

if ($index === false) {
if (false === $index) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Command/Bus/HandlerLocatedCommandBusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class HandlerLocatedCommandBusTest extends TestCase
*/
private $bus;

protected function setUp()
protected function setUp(): void
{
$this->command = $this->getMock(Command::class);
$this->locator = $this->getMock(CommandHandlerLocator::class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ContainerCommandHandlerLocatorTest extends TestCase
*/
private $locator;

protected function setUp()
protected function setUp(): void
{
$this->command = $this->getMock(Command::class);
$this->handler = function (Command $command) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class DirectBindingCommandHandlerLocatorTest extends TestCase
*/
private $locator;

protected function setUp()
protected function setUp(): void
{
$this->command = $this->getMock(Command::class);
$this->handler = function (Command $command) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class SymfonyContainerCommandHandlerLocatorTest extends TestCase
*/
private $locator;

protected function setUp()
protected function setUp(): void
{
$this->command = $this->getMock(Command::class);
$this->handler = function (Command $command) {
Expand Down
2 changes: 1 addition & 1 deletion tests/Command/Queue/Pull/MemoryPullCommandQueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MemoryPullCommandQueueTest extends TestCase
*/
private $queue;

protected function setUp()
protected function setUp(): void
{
$this->queue = new MemoryPullCommandQueue();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MemoryUniquePullCommandQueueTest extends TestCase
*/
private $queue;

protected function setUp()
protected function setUp(): void
{
$this->queue = new MemoryUniquePullCommandQueue();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Command/Queue/Pull/PredisPullCommandQueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class PredisPullCommandQueueTest extends TestCase
*/
private $queue_name = 'commands';

protected function setUp()
protected function setUp(): void
{
$this->client = $this->getMock(Client::class);
$this->serializer = $this->getMock(Serializer::class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class PredisUniquePullCommandQueueTest extends TestCase
*/
private $queue_name = 'unique_commands';

protected function setUp()
protected function setUp(): void
{
$this->client = $this->getMock(Client::class);
$this->serializer = $this->getMock(Serializer::class);
Expand Down
2 changes: 1 addition & 1 deletion tests/Command/Queue/Serializer/SymfonySerializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SymfonySerializerTest extends TestCase
*/
private $serializer;

protected function setUp()
protected function setUp(): void
{
$this->serializer = $this->getMock(SerializerInterface::class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ExecutingSubscribeCommandQueueTest extends TestCase
*/
private $queue;

protected function setUp()
protected function setUp(): void
{
$this->command = $this->getMock(Command::class);
$this->queue = new ExecutingSubscribeCommandQueue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class PredisSubscribeCommandQueueTest extends TestCase
*/
private $queue_name = 'commands';

protected function setUp()
protected function setUp(): void
{
if (!class_exists(RedisPubSubAdapter::class)) {
$this->markTestSkipped('php-pubsub-redis is not installed.');
Expand Down
2 changes: 1 addition & 1 deletion tests/Query/Bus/HandlerLocatedQueryBusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class HandlerLocatedQueryBusTest extends TestCase
*/
private $bus;

protected function setUp()
protected function setUp(): void
{
$this->query = $this->getMock(Query::class);
$this->handler = function (Query $query) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ContainerQueryHandlerLocatorTest extends TestCase
*/
private $locator;

protected function setUp()
protected function setUp(): void
{
$this->query = $this->getMock(Query::class);
$this->handler = function (Query $query) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class DirectBindingQueryHandlerLocatorTest extends TestCase
*/
private $locator;

protected function setUp()
protected function setUp(): void
{
$this->query = $this->getMock(Query::class);
$this->handler = function (Query $query) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class SymfonyContainerQueryHandlerLocatorTest extends TestCase
*/
private $locator;

protected function setUp()
protected function setUp(): void
{
$this->query = $this->getMock(Query::class);
$this->handler = function (Query $query) {
Expand Down

0 comments on commit 3ee18ca

Please sign in to comment.