diff --git a/src/FontLib/TrueType/Collection.php b/src/FontLib/TrueType/Collection.php index 2c97030..d9c80c7 100644 --- a/src/FontLib/TrueType/Collection.php +++ b/src/FontLib/TrueType/Collection.php @@ -69,28 +69,34 @@ function getFont($fontId) { return $this->collection[$fontId] = $font; } + #[\ReturnTypeWillChange] function current() { return $this->getFont($this->position); } + #[\ReturnTypeWillChange] function key() { return $this->position; } + #[\ReturnTypeWillChange] function next() { return ++$this->position; } + #[\ReturnTypeWillChange] function rewind() { $this->position = 0; } + #[\ReturnTypeWillChange] function valid() { $this->parse(); return isset($this->collectionOffsets[$this->position]); } + #[\ReturnTypeWillChange] function count() { $this->parse();