From 41f1b0370a4bddcb4fa03f7a7556683a1050aaeb Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 8 Oct 2023 20:59:56 +0200 Subject: [PATCH] restore return type annotations --- src/Markup.php | 3 +++ src/Util/TemplateDirIterator.php | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/src/Markup.php b/src/Markup.php index 231a29b4121..1788acc4f73 100644 --- a/src/Markup.php +++ b/src/Markup.php @@ -41,6 +41,9 @@ public function count() return mb_strlen($this->content, $this->charset); } + /** + * @return mixed + */ #[\ReturnTypeWillChange] public function jsonSerialize() { diff --git a/src/Util/TemplateDirIterator.php b/src/Util/TemplateDirIterator.php index 8125341bd81..3bef14beec3 100644 --- a/src/Util/TemplateDirIterator.php +++ b/src/Util/TemplateDirIterator.php @@ -16,12 +16,18 @@ */ class TemplateDirIterator extends \IteratorIterator { + /** + * @return mixed + */ #[\ReturnTypeWillChange] public function current() { return file_get_contents(parent::current()); } + /** + * @return mixed + */ #[\ReturnTypeWillChange] public function key() {