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

warnings.pm - support deprecated::smartmatch category #20855

Closed

Commits on Feb 25, 2023

  1. warnings.pm - support deprecated::smartmatch category

    Currently we seem to lack a way to have a subcategory under deprecated.
    It seems reasonable to me that people might want to disable a specific
    subcategory warning while leaving the rest in place. This patch allows
    that. Note that both
    
        no warnings "deprecated";
    
    and
    
        no warnings "deprecated::smartmatch";
    
    work to disable the warning. Really this needs tests, but this will shut
    up autodie warnings, so we can do the tests for this later. Also we
    should go through and enumerate all the deprecated subcategories and
    switch to using them. Deprecated warnings shouldn't be "all or nothing".
    Again, I think that should happen after this is merged.
    demerphq committed Feb 25, 2023
    Configuration menu
    Copy the full SHA
    2d705ed View commit details
    Browse the repository at this point in the history