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.
For fresh hired developers , it is confusing when they should use the Option class or the base functions.
Describe the solution you'd like
To deal with that issue issue we need to create a PHPStan custom that scans for the WordPress Option functions:
update_option
get_option
delete_option
check if we are inside a class and then display an error. 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.
For fresh hired developers , it is confusing when they should use the
Option
class or the base functions.Describe the solution you'd like
To deal with that issue issue we need to create a PHPStan custom that scans for the WordPress Option functions:
update_option
get_option
delete_option
check if we are inside a class and then display an error.
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: