diff --git a/src/AsFloat.php b/src/AsFloat.php index a9a6b54..d0e762c 100644 --- a/src/AsFloat.php +++ b/src/AsFloat.php @@ -1,4 +1,6 @@ -compile(...))->bindTo($this), + \Closure::fromCallable($this->evaluate(...))->bindTo($this) + ); + } + + private function compile(string $input): string + { + return <<compile(...))->bindTo($this), + \Closure::fromCallable($this->evaluate(...))->bindTo($this) + ); + } + + private function compile(string $input): string + { + return <<compile(...))->bindTo($this), + \Closure::fromCallable($this->evaluate(...))->bindTo($this) + ); + } + + private function compile(string $input): string + { + return <<compile(...))->bindTo($this), + \Closure::fromCallable($this->evaluate(...))->bindTo($this) + ); + } + + private function compile(string $input): string + { + return <<compile(...))->bindTo($this), + \Closure::fromCallable($this->evaluate(...))->bindTo($this) + ); + } + + private function compile(string $input, string $limit): string + { + return <<