new commit

This commit is contained in:
fiqhpratama
2024-11-27 11:16:45 +07:00
parent 8435faf0e9
commit 453d9bb470
10880 changed files with 2249737 additions and 72 deletions
@@ -0,0 +1,36 @@
<?php
/**
* Mockery (https://docs.mockery.io/)
*
* @copyright https://github.com/mockery/mockery/blob/HEAD/COPYRIGHT.md
* @license https://github.com/mockery/mockery/blob/HEAD/LICENSE BSD 3-Clause License
* @link https://github.com/mockery/mockery for the canonical source repository
*/
namespace Mockery;
use Closure;
use function func_get_args;
/**
* @internal
*/
class ClosureWrapper
{
private $closure;
public function __construct(Closure $closure)
{
$this->closure = $closure;
}
/**
* @return mixed
*/
public function __invoke()
{
return ($this->closure)(...func_get_args());
}
}