From 7172b779445a02e9ae78ab588295b900ffb6676e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=A0kr=C3=A1=C5=A1ek?= Date: Mon, 8 Apr 2024 16:29:57 +0200 Subject: [PATCH] allow Multiplier::createComponent() to return a null --- src/Application/UI/Multiplier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Application/UI/Multiplier.php b/src/Application/UI/Multiplier.php index 551249d67..f566a7f37 100644 --- a/src/Application/UI/Multiplier.php +++ b/src/Application/UI/Multiplier.php @@ -27,7 +27,7 @@ public function __construct(callable $factory) } - protected function createComponent(string $name): Nette\ComponentModel\IComponent + protected function createComponent(string $name): ?Nette\ComponentModel\IComponent { return ($this->factory)($name, $this); }