Skip to content

Commit

Permalink
Update for PHP 8.1 support (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstauffer authored and oradwell committed Dec 11, 2021
1 parent a450780 commit e6c57fb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/Locator/ConfigLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ class ConfigLocator
*/
public static function locate($configOption)
{
if (is_null($configOption)) {
$configOption = '';
}

$configurationFile = static::CONFIG_FILENAME;
if (is_dir($configOption)) {
$configurationFile = $configOption . DIRECTORY_SEPARATOR . $configurationFile;
Expand Down
12 changes: 10 additions & 2 deletions src/Model/TestCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,30 @@ public function __construct(ConfigurationHolder $configurationHolder)
$this->iteratorIterator = new \RecursiveIteratorIterator($this->iterator);
}

/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->iteratorIterator->current();
}

/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function key()
{
return $this->iteratorIterator->key();
}

public function next()
public function next(): void
{
$this->iteratorIterator->next();
}

public function rewind()
public function rewind(): void
{
$this->iteratorIterator->rewind();
}
Expand Down

0 comments on commit e6c57fb

Please sign in to comment.