Skip to content

Last two arguments to disableMethod and disableFunction shouid be optional #4

Description

@betterphp
$this->disableMethod(example::class, 'get_something', $something);

Will throw an exception stating that argument 4 must be an array

The internal getDisableFunctionClosure method needs to be updated to allow for null arguments for the return value and argument capture variables.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions