mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-07 11:50:51 +00:00
[Test] Remove PHPStanStubLoader::loadStubs() and require constants in tests bootstrap (#2228)
* [Test] Remove PHPStanStubLoader::loadStubs() in tests bootstrap * remove require constant as well
This commit is contained in:
parent
129ce269d3
commit
267d27bcd7
|
@ -2,10 +2,6 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Rector\Core\Stubs\PHPStanStubLoader;
|
||||
|
||||
require_once __DIR__ . '/../src/constants.php';
|
||||
|
||||
// make local php-parser a priority to avoid conflict
|
||||
require_once __DIR__ . '/../preload.php';
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
@ -15,6 +11,3 @@ error_reporting(E_ALL ^ E_DEPRECATED);
|
|||
|
||||
// performance boost
|
||||
gc_disable();
|
||||
|
||||
$phpStanStubLoader = new PHPStanStubLoader();
|
||||
$phpStanStubLoader->loadStubs();
|
||||
|
|
Loading…
Reference in New Issue
Block a user