Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 4.0.0 under development

- Chg #221: Throw `LogicException` in `Tag::id()` when id is empty string (@razvbir)
- Chg #267: Make all `CheckboxItem` and `RadioItem` properties required (@vjik)
- Chg #234: Remove tag attributes sorting (@FrankiFixx)

## 3.13.0 March 13, 2026
Expand Down
2 changes: 2 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ application when you upgrade the package from one version to another.

- `Tag::id()` now throws `LogicException` when an empty string is passed. Check your code for places where you call
`Tag::id()` and make sure you are not passing an empty string.
- All `CheckboxItem` and `RadioItem` properties are now required. If you create instances of these classes directly,
make sure to pass `$labelAttributes` and `$labelWrap` arguments explicitly.
- HTML tag attributes are no longer sorted by `Html::renderTagAttributes()`. Previously, attributes were reordered
according to a predefined priority list (`type`, `id`, `class`, `name`, `value`, etc.). Now attributes are rendered
in the order they are set. If your code or tests depend on a specific attribute order in the rendered HTML, you need
Expand Down
4 changes: 2 additions & 2 deletions src/Widget/CheckboxList/CheckboxItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __construct(
public array $checkboxAttributes,
public string $label,
public bool $encodeLabel,
public array $labelAttributes = [],
public bool $labelWrap = true,
public array $labelAttributes,
public bool $labelWrap,
) {}
}
4 changes: 2 additions & 2 deletions src/Widget/RadioList/RadioItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __construct(
public array $radioAttributes,
public string $label,
public bool $encodeLabel,
public array $labelAttributes = [],
public bool $labelWrap = true,
public array $labelAttributes,
public bool $labelWrap,
) {}
}
Loading