Skip to content

Commit e51c0f4

Browse files
committed
Component: strict fix
1 parent 2935970 commit e51c0f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Application/UI/Component.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function getUniqueId(): string
7676
protected function createComponent(string $name): ?Nette\ComponentModel\IComponent
7777
{
7878
$res = parent::createComponent($name);
79-
if (!$res instanceof SignalReceiver && !$res instanceof StatePersistent) {
79+
if ($res && !$res instanceof SignalReceiver && !$res instanceof StatePersistent) {
8080
$type = get_class($res);
8181
trigger_error("It seems that component '$name' of type $type is not intended to be used in the Presenter.", E_USER_NOTICE);
8282
}

0 commit comments

Comments
 (0)