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.
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.