From ca960ba206910c218af8ffa477eabe54f7385439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Tvrd=C3=ADk?= Date: Tue, 17 Jun 2025 12:28:44 +0200 Subject: [PATCH] Fix PHP 8.4 deprecation warnings for implicitly nullable parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Container.stub: Make $filterType explicitly nullable (?string) - Selection.stub: Make $offset explicitly nullable (?int) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- stubs/ComponentModel/Container.stub | 2 +- stubs/Database/Table/Selection.stub | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/ComponentModel/Container.stub b/stubs/ComponentModel/Container.stub index 2c0ba4b..384b2b6 100644 --- a/stubs/ComponentModel/Container.stub +++ b/stubs/ComponentModel/Container.stub @@ -10,7 +10,7 @@ class Container extends Component implements IContainer * @phpstan-param null|class-string $filterType * @phpstan-return ($filterType is null ? \Iterator : \Iterator) */ - public function getComponents(bool $deep = false, string $filterType = null): \Iterator + public function getComponents(bool $deep = false, ?string $filterType = null): \Iterator { // nothing } diff --git a/stubs/Database/Table/Selection.stub b/stubs/Database/Table/Selection.stub index b3fce7c..5e73bd6 100644 --- a/stubs/Database/Table/Selection.stub +++ b/stubs/Database/Table/Selection.stub @@ -14,7 +14,7 @@ class Selection implements \Iterator, \ArrayAccess * @phpstan-param positive-int|0|null $offset * @return static */ - public function limit(?int $limit, int $offset = null) + public function limit(?int $limit, ?int $offset = null) { }