You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Today we are still missing some transients and options while uninstalling. Describe the solution you'd like
The idea would be to create a rule to catch them and raise an error.
When it encounter the creation or the update of an option or a transient it will save it to process it when it gonna encounter the uninstall method.
Once it encounters the uninstall method it feeds its state with the transients and options we delete there and raise error for all the potentially missing ones we did encounter in the past or we will encounter in the future.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Today we are still missing some transients and options while uninstalling.
Describe the solution you'd like
The idea would be to create a rule to catch them and raise an error.
For that we will have not to create a rule but a phpstan collector: https://phpstan.org/developing-extensions/collectors
That collector would do two things:
When it encounter the creation or the update of an option or a transient it will save it to process it when it gonna encounter the uninstall method.
Once it encounters the uninstall method it feeds its state with the transients and options we delete there and raise error for all the potentially missing ones we did encounter in the past or we will encounter in the future.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: