Skip to content

Commit c91f7d0

Browse files
committed
typo
1 parent 3bbf691 commit c91f7d0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Forms/Controls/TextInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function getControl(): Nette\Utils\Html
5757
{
5858
return parent::getControl()->addAttributes([
5959
'value' => $this->control->type === 'password' ? $this->control->value : $this->getRenderedValue(),
60-
'type' => $this->control->type ?: 'text',
60+
'type' => $this->control->type ?? 'text',
6161
]);
6262
}
6363

src/Forms/Helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private static function sanitize(int $type, $value): string|array|Nette\Http\Fil
9494
*/
9595
public static function generateHtmlName(string $id): string
9696
{
97-
$name = str_replace(Nette\ComponentModel\IComponent::NAME_SEPARATOR, '][', $id, $count);
97+
$name = str_replace(Nette\ComponentModel\IComponent::NameSeparator, '][', $id, $count);
9898
if ($count) {
9999
$name = substr_replace($name, '', strpos($name, ']'), 1) . ']';
100100
}

tests/Forms/Forms.renderer.2.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ $sex = [
3838

3939
$form = new Form;
4040

41-
$renderer = $form->renderer;
41+
$renderer = $form->getRenderer();
4242
$renderer->wrappers['form']['container'] = Html::el('div')->id('form');
4343
$renderer->wrappers['form']['errors'] = false;
4444
$renderer->wrappers['group']['container'] = null;

0 commit comments

Comments
 (0)