Open slaFFik opened 8 months ago
I think the code should differentiate between a class method and a global function. This may happen with other methods as well that share the same name as a global native PHP function.
I faced this case:
$this->define( 'SOME_CONSTANT', $this->some_value );
wpforms-phpcs reports this error:
wpforms-phpcs
WPForms.Comments.PHPDocDefine.MissPHPDoc: Add the PHPDoc for the define function.
OK to to work on this when we have time - not high priority.
Expected Behavior
I think the code should differentiate between a class method and a global function. This may happen with other methods as well that share the same name as a global native PHP function.
Current Behavior
I faced this case:
wpforms-phpcs
reports this error:Screenshots