From 84dedf83c64da5894a5efd1c752f31b4d89b21e0 Mon Sep 17 00:00:00 2001 From: Valentina <102604205+Pek5892@users.noreply.github.com> Date: Tue, 19 May 2026 12:02:46 +0200 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20compatibilit=C3=A0=20php8.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/FluidXml/FluidInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/FluidXml/FluidInterface.php b/source/FluidXml/FluidInterface.php index 0bfc6e4..4ab140a 100644 --- a/source/FluidXml/FluidInterface.php +++ b/source/FluidXml/FluidInterface.php @@ -14,7 +14,7 @@ public function html($strip = false); public function save($file, $strip = false); public function query(...$query); public function __invoke(...$query); - public function times($times, callable $fn = null); + public function times($times, ?callable $fn = null); public function each(callable $fn); public function map(callable $fn); public function filter(callable $fn); From d339c4aea3480d3b0e9151b1e17bf5b546c612e9 Mon Sep 17 00:00:00 2001 From: Valentina <102604205+Pek5892@users.noreply.github.com> Date: Fri, 5 Jun 2026 16:11:33 +0200 Subject: [PATCH 2/3] Update FluidContext.php --- source/FluidXml/FluidContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/FluidXml/FluidContext.php b/source/FluidXml/FluidContext.php index 6f76e41..57b1595 100644 --- a/source/FluidXml/FluidContext.php +++ b/source/FluidXml/FluidContext.php @@ -155,7 +155,7 @@ public function __invoke(...$query): FluidContext return $this->query(...$query); } - public function times($times, callable $fn = null): FluidRepeater|static + public function times($times, ?callable $fn = null): FluidRepeater|static { if ($fn === null) { return new FluidRepeater($this->document, $this->handler, $this, $times); From d73c3f552e5f21d0df98beb86de165de24b6b301 Mon Sep 17 00:00:00 2001 From: valentina Date: Mon, 8 Jun 2026 16:59:16 +0200 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20compatibilit=C3=A0=20php8.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/FluidXml/FluidXml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/FluidXml/FluidXml.php b/source/FluidXml/FluidXml.php index 1f8b11d..72cb906 100644 --- a/source/FluidXml/FluidXml.php +++ b/source/FluidXml/FluidXml.php @@ -207,7 +207,7 @@ protected function namespace_(...$arguments): static } public function query(...$query) { return $this->context()->query(...$query); } - public function times($times, callable $fn = null) { return $this->context()->times($times, $fn); } + public function times($times, ?callable $fn = null) { return $this->context()->times($times, $fn); } public function each(callable $fn) { return $this->context()->each($fn); } public function map(callable $fn) { return $this->context()->map($fn); } public function filter(callable $fn) { return $this->context()->filter($fn); }