Skip to content

Commit 9c288cc

Browse files
committed
typo
1 parent c74a7c6 commit 9c288cc

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/Application/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function getMethod(): ?string
158158
*/
159159
public function isMethod(string $method): bool
160160
{
161-
return strcasecmp((string) $this->method, $method) === 0;
161+
return strcasecmp($this->method, $method) === 0;
162162
}
163163

164164

src/Application/UI/Presenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function run(Application\Request $request): Application\Response
194194
$this->startup();
195195
if (!$this->startupCheck) {
196196
$class = static::getReflection()->getMethod('startup')->getDeclaringClass()->getName();
197-
throw new Nette\InvalidStateException("Method $class::startup() or its descendant doesn't call parent::startup().");
197+
throw new Nette\InvalidStateException("Method $class::startup() or its parents doesn't call parent::startup().");
198198
}
199199

200200
// calls $this->action<Action>()

tests/UI/ComponentReflection.getActionRenderMethod().phpt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,26 @@ class TestPresenter extends Presenter
1313
{
1414
public function actionDefault(): void
1515
{
16-
1716
}
1817

1918

2019
public function renderDefault(): void
2120
{
22-
2321
}
2422

2523

2624
public function actionAltAction(): void
2725
{
28-
2926
}
3027

3128

3229
public function renderAltRender(): void
3330
{
34-
3531
}
3632

3733

3834
public function handleSignal(): void
3935
{
40-
4136
}
4237
}
4338

0 commit comments

Comments
 (0)