[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:
Abdul Malik Ikhsan 2022-05-04 20:43:35 +07:00 committed by GitHub
parent 129ce269d3
commit 267d27bcd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();