Skip to content

Commit 9b62986

Browse files
JanTvrdikclaude
authored andcommitted
Fix PHP 8.4 deprecation warnings for implicitly nullable parameters
- 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 <noreply@anthropic.com>
1 parent a003372 commit 9b62986

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stubs/ComponentModel/Container.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Container extends Component implements IContainer
1010
* @phpstan-param null|class-string<T> $filterType
1111
* @phpstan-return ($filterType is null ? \Iterator<int|string, \Nette\ComponentModel\IComponent> : \Iterator<int|string, T>)
1212
*/
13-
public function getComponents(bool $deep = false, string $filterType = null): \Iterator
13+
public function getComponents(bool $deep = false, ?string $filterType = null): \Iterator
1414
{
1515
// nothing
1616
}

stubs/Database/Table/Selection.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Selection implements \Iterator, \ArrayAccess
1414
* @phpstan-param positive-int|0|null $offset
1515
* @return static<T>
1616
*/
17-
public function limit(?int $limit, int $offset = null)
17+
public function limit(?int $limit, ?int $offset = null)
1818
{
1919
}
2020

0 commit comments

Comments
 (0)