Skip to content

Commit

Permalink
support for PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 25, 2021
1 parent 4bb752c commit 20a39df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.1', '7.2', '7.3', '7.4', '8.0']
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']

fail-fast: false

Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ The recommended way to install is via Composer:
composer require nette/component-model
```

It requires PHP version 7.1 and supports PHP up to 8.0.
It requires PHP version 7.1 and supports PHP up to 8.1.
3 changes: 1 addition & 2 deletions src/ComponentModel/RecursiveComponentIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ public function hasChildren(): bool

/**
* The sub-iterator for the current element.
* @return \RecursiveIterator<int|string,IComponent>
*/
public function getChildren(): \RecursiveIterator
public function getChildren(): self
{
return $this->current()->getComponents();
}
Expand Down

0 comments on commit 20a39df

Please sign in to comment.