Skip to content

Widget::widget() has never return type #141

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
jdamner opened this issue Nov 10, 2023 · 1 comment
Closed

Widget::widget() has never return type #141

jdamner opened this issue Nov 10, 2023 · 1 comment

Comments

@jdamner
Copy link

jdamner commented Nov 10, 2023

The Widget::widget() method has a return type of never because in WP it's a stub it terminates execution if a developer hasn't overridden the method. Not sure how you'd go about avoiding this for stub implementations.

@IanDelMar
Copy link
Contributor

IanDelMar commented Nov 10, 2023

The never type has been added to Widget::widget() in v6.4.0 and has been removed in v6.4.1. #110 #133

@jdamner jdamner closed this as completed Feb 22, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants