Skip to content

Commit

Permalink
Update yiisoft/html requirement from ^2.5 to ^3.0 (#94)
Browse files Browse the repository at this point in the history
* Update yiisoft/html requirement from ^2.5 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.5.0...3.0.0)

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

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

* fix

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sergei Predvoditelev <sergei@predvoditelev.ru>
  • Loading branch information
dependabot[bot] and vjik committed Dec 26, 2022
1 parent dfc1803 commit c363652
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -25,7 +25,7 @@
"yiisoft/arrays": "^1.0|^2.0",
"yiisoft/assets": "^2.0",
"yiisoft/files": "^2.0",
"yiisoft/html": "^2.5",
"yiisoft/html": "^3.0",
"yiisoft/json": "^1.0",
"yiisoft/widget": "^1.0"
},
Expand Down
1 change: 1 addition & 0 deletions src/Accordion.php
Expand Up @@ -8,6 +8,7 @@
use RuntimeException;
use Yiisoft\Arrays\ArrayHelper;
use Yiisoft\Html\Html;

use function array_key_exists;
use function array_merge;
use function implode;
Expand Down
6 changes: 3 additions & 3 deletions src/Dropdown.php
Expand Up @@ -176,7 +176,7 @@ private function renderItems(array $items, array $options = []): string

return Html::ul()
->items(...$lines)
->addAttributes($options)
->attributes($options)
->render();
}

Expand Down Expand Up @@ -223,7 +223,7 @@ private function renderItem(array $item): Li

return Li::tag()
->content($content)
->addAttributes($itemOptions)
->attributes($itemOptions)
->encode(false);
}

Expand Down Expand Up @@ -260,7 +260,7 @@ private function renderItem(array $item): Li

return Li::tag()
->content($toggle . $dropdown->render())
->addAttributes($itemOptions)
->attributes($itemOptions)
->encode(false);
}
}

0 comments on commit c363652

Please sign in to comment.