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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions