We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2e1cc6 commit d99ca55Copy full SHA for d99ca55
src/Application/UI/Component.php
@@ -76,7 +76,7 @@ public function getUniqueId(): string
76
protected function createComponent(string $name): ?Nette\ComponentModel\IComponent
77
{
78
$res = parent::createComponent($name);
79
- if (!$res instanceof SignalReceiver && !$res instanceof StatePersistent) {
+ if ($res && !$res instanceof SignalReceiver && !$res instanceof StatePersistent) {
80
$type = get_class($res);
81
trigger_error("It seems that component '$name' of type $type is not intended to be used in the Presenter.", E_USER_NOTICE);
82
}
0 commit comments