Skip to content

Commit

Permalink
component: remove stdclass assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
matej21 committed Nov 7, 2019
1 parent cde9c24 commit fac15bc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Component/FlashMessages.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit fac15bc

Please sign in to comment.