Skip to content

Commit 09589cc

Browse files
authored
php 8+ off message warning
1 parent 6137b7d commit 09589cc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/FontLib/TrueType/Collection.php

+6
Original file line numberDiff line numberDiff line change
@@ -69,28 +69,34 @@ function getFont($fontId) {
6969
return $this->collection[$fontId] = $font;
7070
}
7171

72+
#[\ReturnTypeWillChange]
7273
function current() {
7374
return $this->getFont($this->position);
7475
}
7576

77+
#[\ReturnTypeWillChange]
7678
function key() {
7779
return $this->position;
7880
}
7981

82+
#[\ReturnTypeWillChange]
8083
function next() {
8184
return ++$this->position;
8285
}
8386

87+
#[\ReturnTypeWillChange]
8488
function rewind() {
8589
$this->position = 0;
8690
}
8791

92+
#[\ReturnTypeWillChange]
8893
function valid() {
8994
$this->parse();
9095

9196
return isset($this->collectionOffsets[$this->position]);
9297
}
9398

99+
#[\ReturnTypeWillChange]
94100
function count() {
95101
$this->parse();
96102

0 commit comments

Comments
 (0)