Add missing php 8.1 change...

This commit is contained in:
Johannes Meyer 2022-03-24 15:41:16 +01:00
parent 42997566bb
commit 38103bed83
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ use ArrayIterator;
use InvalidArgumentException; use InvalidArgumentException;
use IteratorAggregate; use IteratorAggregate;
use Less_Environment; use Less_Environment;
use Traversable;
/** /**
* Registry for light modes and the environments in which they are defined * Registry for light modes and the environments in which they are defined
@ -120,7 +121,7 @@ class LightMode implements IteratorAggregate
return $this; return $this;
} }
public function getIterator() public function getIterator(): Traversable
{ {
return new ArrayIterator(array_keys($this->modes)); return new ArrayIterator(array_keys($this->modes));
} }