mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-23 19:24:48 +01:00
20 lines
418 B
PHP
20 lines
418 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Stubs\StubLoader;
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
|
|
require_once 'phar://vendor/phpstan/phpstan/phpstan.phar/vendor/jetbrains/phpstorm-stubs/PhpStormStubsMap.php';
|
|
|
|
// silent deprecations, since we test them
|
|
error_reporting(E_ALL ^ E_DEPRECATED);
|
|
|
|
// performance boost
|
|
gc_disable();
|
|
|
|
// load stubs
|
|
$stubLoader = new StubLoader();
|
|
$stubLoader->loadStubs();
|