mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-03 09:50:49 +00:00
aae549741f
0cb3fd0feb
[Php73] Handle crash Type Error on JsonThrowOnErrorRector (#4626)
21 lines
466 B
PHP
21 lines
466 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Testing\PHPUnit;
|
|
|
|
use RectorPrefix202308\Illuminate\Container\Container;
|
|
use PHPUnit\Framework\TestCase;
|
|
abstract class AbstractLazyTestCase extends TestCase
|
|
{
|
|
/**
|
|
* @template TType as object
|
|
* @param class-string<TType> $class
|
|
* @return TType
|
|
*/
|
|
protected function make(string $class) : object
|
|
{
|
|
$container = new Container();
|
|
return $container->make($class);
|
|
}
|
|
}
|