diff --git a/src/Component/FlashMessages.php b/src/Component/FlashMessages.php index fc4c7f0..0803e04 100644 --- a/src/Component/FlashMessages.php +++ b/src/Component/FlashMessages.php @@ -44,11 +44,9 @@ protected function validateParent(Nette\ComponentModel\IContainer $parent): void public function render(): void { - assert($this->template instanceof \stdClass); $this->template->typeClasses = $this->typeClassMapping ?: self::$typeClasses; $parent = $this->parent; assert($parent instanceof Control); - assert($parent->template instanceof \stdClass); $this->template->flashes = $parent->template->flashes; assert($this->template instanceof Nette\Application\UI\ITemplate); if (!$this->template->getFile()) {