Skip to content

Commit 06a05d5

Browse files
yannickl88Hidde Boomsma
authored andcommitted
Also support lower versions (#5)
1 parent 9bd492f commit 06a05d5

File tree

5 files changed

+7
-10
lines changed

5 files changed

+7
-10
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
- mysql
55

66
php:
7+
- 5.6
78
- 7.0
89
- 7.1
910
- nightly

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"description": "Provide a real database, safe for testing purposes",
55
"license": "MIT",
66
"require": {
7-
"php": "^7.0",
7+
"php": "^5.6|^7.0",
88
"doctrine/orm": "^2.5.4"
99
},
1010
"require-dev": {
11-
"hostnet/phpcs-tool": "^5.2.1",
12-
"phpunit/phpunit": "^6.4.1"
11+
"hostnet/phpcs-tool": "^4.0.6",
12+
"phpunit/phpunit": "^5.3.2"
1313
},
1414
"autoload": {
1515
"psr-4": {

src/ConnectionInterface.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/**
33
* @copyright 2016-2017 Hostnet B.V.
44
*/
5-
declare(strict_types = 1);
65
namespace Hostnet\Component\DatabaseTest;
76

87
/**
@@ -22,5 +21,5 @@ interface ConnectionInterface
2221
*
2322
* @return array
2423
*/
25-
public function getConnectionParams(): array;
24+
public function getConnectionParams();
2625
}

src/MysqlPersistentConnection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/**
33
* @copyright 2016-2017 Hostnet B.V.
44
*/
5-
declare(strict_types = 1);
65
namespace Hostnet\Component\DatabaseTest;
76

87
/**
@@ -82,7 +81,7 @@ public function __destruct()
8281
* {@inheritdoc}
8382
* @return array
8483
*/
85-
public function getConnectionParams(): array
84+
public function getConnectionParams()
8685
{
8786
return $this->connection_params;
8887
}

test/MysqlPersistentConnectionTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
/**
33
* @copyright 2016-2017 Hostnet B.V.
44
*/
5-
declare(strict_types=1);
6-
75
namespace Hostnet\Component\DatabaseTest;
86

97
use Doctrine\DBAL\DriverManager;
@@ -53,7 +51,7 @@ public function testDestruction()
5351
* @return string[]
5452
* @throws \Doctrine\DBAL\DBALException
5553
*/
56-
private function listDatabases(array $params): array
54+
private function listDatabases(array $params)
5755
{
5856
$doctrine = DriverManager::getConnection($params);
5957
$statement = $doctrine->executeQuery('SHOW DATABASES');

0 commit comments

Comments
 (0)