diff --git a/.travis.yml b/.travis.yml index 7117037..dc07a0e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ services: - mysql php: + - 5.6 - 7.0 - 7.1 - nightly diff --git a/composer.json b/composer.json index ca80f08..36c3298 100644 --- a/composer.json +++ b/composer.json @@ -4,12 +4,12 @@ "description": "Provide a real database, safe for testing purposes", "license": "MIT", "require": { - "php": "^7.0", + "php": "^5.6|^7.0", "doctrine/orm": "^2.5.4" }, "require-dev": { - "hostnet/phpcs-tool": "^5.2.1", - "phpunit/phpunit": "^6.4.1" + "hostnet/phpcs-tool": "^4.0.6", + "phpunit/phpunit": "^5.3.2" }, "autoload": { "psr-4": { diff --git a/src/ConnectionInterface.php b/src/ConnectionInterface.php index 6b6f434..139bb38 100644 --- a/src/ConnectionInterface.php +++ b/src/ConnectionInterface.php @@ -2,7 +2,6 @@ /** * @copyright 2016-2017 Hostnet B.V. */ -declare(strict_types = 1); namespace Hostnet\Component\DatabaseTest; /** @@ -22,5 +21,5 @@ interface ConnectionInterface * * @return array */ - public function getConnectionParams(): array; + public function getConnectionParams(); } diff --git a/src/MysqlPersistentConnection.php b/src/MysqlPersistentConnection.php index f55543e..3de8456 100644 --- a/src/MysqlPersistentConnection.php +++ b/src/MysqlPersistentConnection.php @@ -2,7 +2,6 @@ /** * @copyright 2016-2017 Hostnet B.V. */ -declare(strict_types = 1); namespace Hostnet\Component\DatabaseTest; /** @@ -82,7 +81,7 @@ public function __destruct() * {@inheritdoc} * @return array */ - public function getConnectionParams(): array + public function getConnectionParams() { return $this->connection_params; } diff --git a/test/MysqlPersistentConnectionTest.php b/test/MysqlPersistentConnectionTest.php index a3b83f4..de6b315 100644 --- a/test/MysqlPersistentConnectionTest.php +++ b/test/MysqlPersistentConnectionTest.php @@ -2,8 +2,6 @@ /** * @copyright 2016-2017 Hostnet B.V. */ -declare(strict_types=1); - namespace Hostnet\Component\DatabaseTest; use Doctrine\DBAL\DriverManager; @@ -53,7 +51,7 @@ public function testDestruction() * @return string[] * @throws \Doctrine\DBAL\DBALException */ - private function listDatabases(array $params): array + private function listDatabases(array $params) { $doctrine = DriverManager::getConnection($params); $statement = $doctrine->executeQuery('SHOW DATABASES');