Skip to content

constt return same closure when called without arguments #103

Description

@thomasvargiu

Hi,

I don't know if it's correct, but let's see this example:

$result = f\constt('foo')(); // returns the closure
$result = f\constt('foo')('bar); // returns "foo"

Is it correct? I think that it should return "foo" in both cases, evaluating it even when there are no parameters

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions