Skip to content

Commit

Permalink
Merge pull request #97 from kynx/fix-test-asset-types
Browse files Browse the repository at this point in the history
Fixed errors running phpcs under PHP 8.1
  • Loading branch information
Ocramius authored Oct 24, 2022
2 parents 89fcfc8 + f88e92b commit fcaa066
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions test/TestAsset/ArrayObjectIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,32 +24,28 @@ public function __construct($array)
}
}

/** @return void */
public function rewind()
public function rewind(): void
{
reset($this->var);
}

/** @return mixed */
public function current()
public function current(): mixed
{
return current($this->var);
}

/** @return int|string */
public function key()
public function key(): mixed
{
return key($this->var);
}

/** @return mixed */
public function next()
public function next(): void
{
return next($this->var);
next($this->var);
}

/** @return bool */
public function valid()
public function valid(): bool
{
$key = key($this->var);
return $key !== null && $key !== false;
Expand Down

0 comments on commit fcaa066

Please sign in to comment.