Skip to content

Commit

Permalink
Update yiisoft/html requirement from ^2.4 to ^3.0 (#232)
Browse files Browse the repository at this point in the history
* Update yiisoft/html requirement from ^2.4 to ^3.0

Updates the requirements on [yiisoft/html](https://github.com/yiisoft/html) to permit the latest version.
- [Release notes](https://github.com/yiisoft/html/releases)
- [Changelog](https://github.com/yiisoft/html/blob/master/CHANGELOG.md)
- [Commits](yiisoft/html@2.4.0...3.0.0)

---
updated-dependencies:
- dependency-name: yiisoft/html
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update composer.json

* fix

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Sergei Predvoditelev <sergei@predvoditelev.ru>
  • Loading branch information
3 people committed Dec 26, 2022
1 parent 4b385ff commit 75a047b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -21,7 +21,7 @@
"require": {
"php": "^8.0",
"yiisoft/friendly-exception": "^1.0",
"yiisoft/html": "^2.4",
"yiisoft/html": "^3.0",
"yiisoft/http": "^1.2",
"yiisoft/strings": "^2.0",
"yiisoft/validator": "dev-master",
Expand Down
4 changes: 2 additions & 2 deletions src/Field/ButtonGroup.php
Expand Up @@ -31,7 +31,7 @@ public function buttons(ButtonTag ...$buttons): self

/**
* @param array $data Array of buttons. Each button is an array with label as first element and additional
* name-value pairs as attrbiutes of button.
* name-value pairs as attributes of button.
*
* Example:
* ```php
Expand All @@ -52,7 +52,7 @@ public function buttonsData(array $data, bool $encode = true): self
public function buttonAttributes(array $attributes): self
{
$new = clone $this;
$new->widget = $this->widget->replaceButtonAttributes($attributes);
$new->widget = $this->widget->buttonAttributes($attributes);
return $new;
}

Expand Down
4 changes: 2 additions & 2 deletions src/Field/CheckboxList.php
Expand Up @@ -38,7 +38,7 @@ public function __construct()
public function checkboxAttributes(array $attributes): self
{
$new = clone $this;
$new->widget = $this->widget->replaceCheckboxAttributes($attributes);
$new->widget = $this->widget->checkboxAttributes($attributes);
return $new;
}

Expand All @@ -55,7 +55,7 @@ public function addCheckboxAttributes(array $attributes): self
public function individualInputAttributes(array $attributes): self
{
$new = clone $this;
$new->widget = $this->widget->replaceIndividualInputAttributes($attributes);
$new->widget = $this->widget->individualInputAttributes($attributes);
return $new;
}

Expand Down
4 changes: 2 additions & 2 deletions src/Field/RadioList.php
Expand Up @@ -36,7 +36,7 @@ public function __construct()
public function radioAttributes(array $attributes): self
{
$new = clone $this;
$new->widget = $this->widget->replaceRadioAttributes($attributes);
$new->widget = $this->widget->radioAttributes($attributes);
return $new;
}

Expand All @@ -53,7 +53,7 @@ public function addRadioAttributes(array $attributes): self
public function individualInputAttributes(array $attributes): self
{
$new = clone $this;
$new->widget = $this->widget->replaceIndividualInputAttributes($attributes);
$new->widget = $this->widget->individualInputAttributes($attributes);
return $new;
}

Expand Down

0 comments on commit 75a047b

Please sign in to comment.