diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7351628..de8c8e9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/readme.md b/readme.md index 0eb032a..9789d9e 100644 --- a/readme.md +++ b/readme.md @@ -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. diff --git a/src/ComponentModel/RecursiveComponentIterator.php b/src/ComponentModel/RecursiveComponentIterator.php index 6a43a78..b161860 100644 --- a/src/ComponentModel/RecursiveComponentIterator.php +++ b/src/ComponentModel/RecursiveComponentIterator.php @@ -27,9 +27,8 @@ public function hasChildren(): bool /** * The sub-iterator for the current element. - * @return \RecursiveIterator */ - public function getChildren(): \RecursiveIterator + public function getChildren(): self { return $this->current()->getComponents(); }