Skip to content

Commit

Permalink
Merge pull request #39 from oradwell/php-8-1
Browse files Browse the repository at this point in the history
Fix PHP 8.1 deprecations
  • Loading branch information
oradwell authored Dec 11, 2021
2 parents a450780 + 395c0b3 commit 8f000fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 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
4 changes: 4 additions & 0 deletions src/Model/TestCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,25 @@ public function __construct(ConfigurationHolder $configurationHolder)
$this->iteratorIterator = new \RecursiveIteratorIterator($this->iterator);
}

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

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

#[\ReturnTypeWillChange]
public function next()
{
$this->iteratorIterator->next();
}

#[\ReturnTypeWillChange]
public function rewind()
{
$this->iteratorIterator->rewind();
Expand Down

0 comments on commit 8f000fd

Please sign in to comment.