Skip to content

Commit

Permalink
Merge pull request #17 from mikemix/php8
Browse files Browse the repository at this point in the history
Allow php 8.0
  • Loading branch information
mikemix authored Oct 31, 2020
2 parents b8adf9d + 4b68f87 commit 5f049a8
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ php:
- 7.2
- 7.3
- 7.4
- nightly

env:
- DEPS=lowest
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "mikemix/tactician-module",
"description": "Laminas Module to use the League of Extraordinary Packages' Tactician library - flexible command bus implementation",
"require": {
"php": "^7.1",
"php": "^7.1 || ^8.0",
"league/tactician": "^1.0",
"laminas/laminas-mvc": "^3.1.1",
"psr/container": "^1.0"
},
"require-dev": {
"league/tactician-doctrine": "^1.0",
"phpunit/phpunit": "^7.5.20",
"phpunit/phpunit": "^7.5.20 || ^9.3.8",
"doctrine/orm": "^2.5"
},
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion test/Factory/CommandBusFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CommandBusFactoryTest extends TestCase
/** @var CommandBusFactory */
private $factory;

public function setUp()
public function setUp(): void
{
$this->serviceLocator = new ServiceManager();
$this->factory = new CommandBusFactory();
Expand Down
2 changes: 1 addition & 1 deletion test/Factory/InMemoryLocatorFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class InMemoryLocatorFactoryTest extends TestCase
*/
protected $factory;

public function setUp()
public function setUp(): void
{
$this->serviceLocator = new ServiceManager();
$this->serviceLocator->setService('config', [
Expand Down
2 changes: 1 addition & 1 deletion test/Factory/Plugin/DoctrineTransactionFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class DoctrineTransactionFactoryTest extends TestCase
/** @var DoctrineTransactionFactory */
private $factory;

public function setUp()
public function setUp(): void
{
$this->container = $this->getMockBuilder(ContainerInterface::class)
->getMock();
Expand Down
2 changes: 1 addition & 1 deletion test/Locator/ClassnameLaminasLocatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ClassnameLaminasLocatorTest extends TestCase
*/
private $locator;

public function setUp()
public function setUp(): void
{
$this->container = $this->getMockBuilder(ContainerInterface::class)
->getMock();
Expand Down
2 changes: 1 addition & 1 deletion test/Locator/LaminasLocatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LaminasLocatorTest extends TestCase
*/
private $locator;

public function setUp()
public function setUp(): void
{
$this->container = $this->getMockBuilder(ContainerInterface::class)
->getMock();
Expand Down
3 changes: 1 addition & 2 deletions test/ModuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ class ModuleTest extends TestCase
public function testConfig()
{
$module = new Module();

$this->assertInternalType('array', $module->getConfig());
$this->assertIsArray($module->getConfig());
}

public function testCreateCommandBusWithServiceManager()
Expand Down

0 comments on commit 5f049a8

Please sign in to comment.