Skip to content

Commit 5f049a8

Browse files
authored
Merge pull request #17 from mikemix/php8
Allow php 8.0
2 parents b8adf9d + 4b68f87 commit 5f049a8

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ php:
55
- 7.2
66
- 7.3
77
- 7.4
8+
- nightly
89

910
env:
1011
- DEPS=lowest

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"name": "mikemix/tactician-module",
33
"description": "Laminas Module to use the League of Extraordinary Packages' Tactician library - flexible command bus implementation",
44
"require": {
5-
"php": "^7.1",
5+
"php": "^7.1 || ^8.0",
66
"league/tactician": "^1.0",
77
"laminas/laminas-mvc": "^3.1.1",
88
"psr/container": "^1.0"
99
},
1010
"require-dev": {
1111
"league/tactician-doctrine": "^1.0",
12-
"phpunit/phpunit": "^7.5.20",
12+
"phpunit/phpunit": "^7.5.20 || ^9.3.8",
1313
"doctrine/orm": "^2.5"
1414
},
1515
"keywords": [

test/Factory/CommandBusFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class CommandBusFactoryTest extends TestCase
1717
/** @var CommandBusFactory */
1818
private $factory;
1919

20-
public function setUp()
20+
public function setUp(): void
2121
{
2222
$this->serviceLocator = new ServiceManager();
2323
$this->factory = new CommandBusFactory();

test/Factory/InMemoryLocatorFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class InMemoryLocatorFactoryTest extends TestCase
1818
*/
1919
protected $factory;
2020

21-
public function setUp()
21+
public function setUp(): void
2222
{
2323
$this->serviceLocator = new ServiceManager();
2424
$this->serviceLocator->setService('config', [

test/Factory/Plugin/DoctrineTransactionFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class DoctrineTransactionFactoryTest extends TestCase
1515
/** @var DoctrineTransactionFactory */
1616
private $factory;
1717

18-
public function setUp()
18+
public function setUp(): void
1919
{
2020
$this->container = $this->getMockBuilder(ContainerInterface::class)
2121
->getMock();

test/Locator/ClassnameLaminasLocatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ClassnameLaminasLocatorTest extends TestCase
2222
*/
2323
private $locator;
2424

25-
public function setUp()
25+
public function setUp(): void
2626
{
2727
$this->container = $this->getMockBuilder(ContainerInterface::class)
2828
->getMock();

test/Locator/LaminasLocatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class LaminasLocatorTest extends TestCase
2020
*/
2121
private $locator;
2222

23-
public function setUp()
23+
public function setUp(): void
2424
{
2525
$this->container = $this->getMockBuilder(ContainerInterface::class)
2626
->getMock();

test/ModuleTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ class ModuleTest extends TestCase
1111
public function testConfig()
1212
{
1313
$module = new Module();
14-
15-
$this->assertInternalType('array', $module->getConfig());
14+
$this->assertIsArray($module->getConfig());
1615
}
1716

1817
public function testCreateCommandBusWithServiceManager()

0 commit comments

Comments
 (0)