From b4f94df2c0772ed8075c267979ab2c1b356eb4f6 Mon Sep 17 00:00:00 2001 From: blackcoder87 Date: Thu, 3 Jun 2021 09:13:51 +0200 Subject: [PATCH] Remove return type hints (failing under PHP 7.0) --- tests/PHPUnit/Ilch/PhpunitDataset.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/PHPUnit/Ilch/PhpunitDataset.php b/tests/PHPUnit/Ilch/PhpunitDataset.php index 87dc6e97f..374ea1139 100644 --- a/tests/PHPUnit/Ilch/PhpunitDataset.php +++ b/tests/PHPUnit/Ilch/PhpunitDataset.php @@ -21,7 +21,7 @@ public function __construct($db) * * @param array $fullpaths full paths to yml files to load. */ - public function loadFromFiles(array $fullpaths): void + public function loadFromFiles(array $fullpaths) { foreach ($fullpaths as $table => $fullpath) { // Only a table when it's an associative array. @@ -35,7 +35,7 @@ public function loadFromFiles(array $fullpaths): void * * @param string $fullpath full path to yml file to load. */ - public function loadFromFile(string $fullpath): void + public function loadFromFile(string $fullpath) { if (!file_exists($fullpath)) { throw new coding_exception('File not found: ' . $fullpath); @@ -58,7 +58,7 @@ public function loadFromFile(string $fullpath): void * * @param string $content contents of yaml file to load. */ - public function loadFromString(string $content): void + public function loadFromString(string $content) { try { $parsedYaml = Yaml::parse($content); @@ -73,7 +73,7 @@ public function loadFromString(string $content): void * * @param array $tables */ - public function sendToDatabase(array $tables): void + public function sendToDatabase(array $tables) { foreach($tables as $table => $rows) { $tableNotEmpty = (bool) $this->db->select('*')