Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 10, 2024
1 parent c74a7c6 commit 9c288cc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Application/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public function getMethod(): ?string
*/
public function isMethod(string $method): bool
{
return strcasecmp((string) $this->method, $method) === 0;
return strcasecmp($this->method, $method) === 0;
}


Expand Down
2 changes: 1 addition & 1 deletion src/Application/UI/Presenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,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
5 changes: 0 additions & 5 deletions tests/UI/ComponentReflection.getActionRenderMethod().phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,26 @@ class TestPresenter extends Presenter
{
public function actionDefault(): void
{

}


public function renderDefault(): void
{

}


public function actionAltAction(): void
{

}


public function renderAltRender(): void
{

}


public function handleSignal(): void
{

}
}

Expand Down

0 comments on commit 9c288cc

Please sign in to comment.