Skip to content

feat: coerce numeric types in WidgetFactory.fromTemplate#7671

Open
ElectricalBoy wants to merge 4 commits into
mainfrom
widget-factory-coerce-numbers
Open

feat: coerce numeric types in WidgetFactory.fromTemplate#7671
ElectricalBoy wants to merge 4 commits into
mainfrom
widget-factory-coerce-numbers

Conversation

@ElectricalBoy

Copy link
Copy Markdown
Collaborator

Summary

Resolves #7560

How did you test this change?

logically trivial

@ElectricalBoy ElectricalBoy requested review from a team as code owners June 17, 2026 01:06
Comment thread lua/wikis/commons/Widget/Factory.lua
@mbergen

mbergen commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Do we have any usage that expects string type numbers, i.e. for equality checks?

@ElectricalBoy

ElectricalBoy commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator Author

Do we have any usage that expects string type numbers

afaik no
Logic.readBool checks both numeric and string type so shouldn't be an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Widget: Coerce integer types to interger in fromTemplate

3 participants