Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Helpers: add some more defensive coding #2269

Merged
merged 1 commit into from
Jul 4, 2023

Commits on Jun 28, 2023

  1. Helpers: add some more defensive coding

    The `Helper` classes containing stand-alone `static` methods can be used by both WPCS itself as well as external standards extending WPCS.
    
    As these methods have been made stand-alone, they should probably contain a little more defensive coding in select places.
    
    Note: this code will not be "covered" by tests at this moment as the WPCS code as-is will never hit these conditions.
    
    At a later point in time, we may want to add dedicated tests for the Helper methods which aren't moving to PHPCSUtils. When we do, we can make sure this defensive code gets covered too.
    jrfnl committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    2e0c47a View commit details
    Browse the repository at this point in the history