Skip to content

Commit

Permalink
Multiplier::createComponent() allow to return a null (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach authored Apr 27, 2024
1 parent 30d90f4 commit 2c364ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Application/UI/Multiplier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2c364ac

Please sign in to comment.