Skip to content

Commit

Permalink
PHP8.1 - more sticking plaster fix : added some #[\ReturnTypeWillChan…
Browse files Browse the repository at this point in the history
…ge] (also requires a change in theseer/fDOMDocument)
  • Loading branch information
Adam Jones authored and theseer committed Apr 20, 2023
1 parent fd26935 commit 1aa70b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/collector/SourceFileIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function next(): void {
*
* @return mixed scalar on success, or null on failure
*/
#[\ReturnTypeWillChange]
public function key() {
return $this->iterator->key();
}
Expand Down
2 changes: 2 additions & 0 deletions src/generator/project/TokenFileIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ public function next(): void {
$this->pos++;
}

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

#[\ReturnTypeWillChange]
public function valid() {
return $this->nodeList->length > $this->pos;
}
Expand Down
1 change: 1 addition & 0 deletions src/generator/project/collections/AbstractCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function next(): void {
*
* @return mixed scalar on success, or null on failure
*/
#[\ReturnTypeWillChange]
public function key() {
return $this->position;
}
Expand Down

0 comments on commit 1aa70b1

Please sign in to comment.