for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Setherator\Variables;
use Closure;
/**
* @author Aurimas Niekis <[email protected]>
*/
class NonCacheableClosure
{
private Closure $closure;
public function __construct(Closure $closure)
$this->closure = $closure;
}
public function __invoke()
$closure = $this->closure;
return $closure();