Skip to content

Commit

Permalink
Remove return type hints (failing under PHP 7.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoder87 committed Jun 3, 2021
1 parent d605595 commit b4f94df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/PHPUnit/Ilch/PhpunitDataset.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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);
Expand All @@ -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);
Expand All @@ -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('*')
Expand Down

0 comments on commit b4f94df

Please sign in to comment.