2019-09-21 19:23:55 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2017-11-10 23:14:17 +01:00
|
|
|
|
2019-10-04 14:55:26 +02:00
|
|
|
use Rector\Stubs\StubLoader;
|
|
|
|
|
2017-11-10 23:14:17 +01:00
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
|
|
|
2020-02-06 00:54:50 +01:00
|
|
|
require_once 'phar://vendor/phpstan/phpstan/phpstan.phar/vendor/jetbrains/phpstorm-stubs/PhpStormStubsMap.php';
|
|
|
|
|
2018-10-05 19:16:11 +08:00
|
|
|
// silent deprecations, since we test them
|
|
|
|
error_reporting(E_ALL ^ E_DEPRECATED);
|
|
|
|
|
2018-04-02 00:32:51 +02:00
|
|
|
// performance boost
|
2017-11-10 23:15:35 +01:00
|
|
|
gc_disable();
|
2019-10-04 14:55:26 +02:00
|
|
|
|
|
|
|
// load stubs
|
|
|
|
$stubLoader = new StubLoader();
|
|
|
|
$stubLoader->loadStubs();
|