Skip to content

Commit 20a39df

Browse files
committed
support for PHP 8.1
1 parent 4bb752c commit 20a39df

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
php: ['7.1', '7.2', '7.3', '7.4', '8.0']
10+
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
1111

1212
fail-fast: false
1313

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ The recommended way to install is via Composer:
2828
composer require nette/component-model
2929
```
3030

31-
It requires PHP version 7.1 and supports PHP up to 8.0.
31+
It requires PHP version 7.1 and supports PHP up to 8.1.

src/ComponentModel/RecursiveComponentIterator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ public function hasChildren(): bool
2727

2828
/**
2929
* The sub-iterator for the current element.
30-
* @return \RecursiveIterator<int|string,IComponent>
3130
*/
32-
public function getChildren(): \RecursiveIterator
31+
public function getChildren(): self
3332
{
3433
return $this->current()->getComponents();
3534
}

0 commit comments

Comments
 (0)