Skip to content

Commit

Permalink
Component: strict fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 29, 2021
1 parent c15bd94 commit 0ba10f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Application/UI/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function getUniqueId(): string
protected function createComponent(string $name): ?Nette\ComponentModel\IComponent
{
$res = parent::createComponent($name);
if (!$res instanceof SignalReceiver && !$res instanceof StatePersistent) {
if ($res && !$res instanceof SignalReceiver && !$res instanceof StatePersistent) {
$type = get_class($res);
trigger_error("It seems that component '$name' of type $type is not intended to for in the Presenter.", E_USER_NOTICE);
}
Expand Down

0 comments on commit 0ba10f1

Please sign in to comment.