Skip to content

disallowParamsAnywhere isn't supported #340

@gms8994

Description

@gms8994

First off, I love the flexibility that this library has. It's been quite beneficial for getting rid of specific uses of code in our systems.

There may be another way to do this, but from reading the documentation, I can't seem to figure out a way; I want to disallow all calls to Object->method but only if the parameter is 'my-test-string'. method however can take a string, an array of values, or a destructured array of values. So I want disallowParamsAnywhere, specifically for the destructured array case.

disallowParams is a partial workaround, and will allow us to catch the obvious cases, but having support for catching them anywhere would be awesome!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions