Skip to content

Commit

Permalink
Correction of false exception message in startup check
Browse files Browse the repository at this point in the history
The exception message states the lowest possible presenter class where method beforeRender is found, so the error can be here or in its parents not descendants !!
  • Loading branch information
mildabre committed May 28, 2024
1 parent ecb200c commit 83880f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Application/UI/Presenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function run(Application\Request $request): Application\Response
$this->startup();
if (!$this->startupCheck) {
$class = static::getReflection()->getMethod('startup')->getDeclaringClass()->getName();
throw new Nette\InvalidStateException("Method $class::startup() or its descendant doesn't call parent::startup().");
throw new Nette\InvalidStateException("Method $class::startup() or its parents doesn't call parent::startup().");
}

// calls $this->action<Action>()
Expand Down

0 comments on commit 83880f2

Please sign in to comment.