diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-12-02 23:21:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 23:21:02 +0300 |
commit | c7ae86c025161924e9222de640feb8d71bef77da (patch) | |
tree | dc3865e3a44ea1004da66018206b727bcf2bdf8e /libs | |
parent | 43c21c99ef0451772a52a449729f832bfad8e82e (diff) |
Fixes HTML_QuickForm2_ContainerIterator for PHP8.1 (#18384)
* Fixes HTML_QuickForm2_ContainerIterator for PHP8.1
* another fix
Diffstat (limited to 'libs')
-rw-r--r-- | libs/HTML/QuickForm2/Container.php | 4 | ||||
-rw-r--r-- | libs/HTML/QuickForm2/Element/Select.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libs/HTML/QuickForm2/Container.php b/libs/HTML/QuickForm2/Container.php index 979b9b7e28..6270a2f84c 100644 --- a/libs/HTML/QuickForm2/Container.php +++ b/libs/HTML/QuickForm2/Container.php @@ -65,12 +65,12 @@ class HTML_QuickForm2_ContainerIterator extends RecursiveArrayIterator implement parent::__construct($container->getElements()); } - public function hasChildren() + public function hasChildren(): bool { return $this->current() instanceof HTML_QuickForm2_Container; } - public function getChildren() + public function getChildren(): HTML_QuickForm2_ContainerIterator { return new HTML_QuickForm2_ContainerIterator($this->current()); } diff --git a/libs/HTML/QuickForm2/Element/Select.php b/libs/HTML/QuickForm2/Element/Select.php index d336b66c6d..d9a78d9dea 100644 --- a/libs/HTML/QuickForm2/Element/Select.php +++ b/libs/HTML/QuickForm2/Element/Select.php @@ -60,12 +60,12 @@ class HTML_QuickForm2_Element_Select_OptionIterator extends RecursiveArrayIterator implements RecursiveIterator { - public function hasChildren() + public function hasChildren(): bool { return $this->current() instanceof HTML_QuickForm2_Element_Select_OptionContainer; } - public function getChildren() + public function getChildren(): HTML_QuickForm2_Element_Select_OptionIterator { return new HTML_QuickForm2_Element_Select_OptionIterator( $this->current()->getOptions() |