2019-09-21 19:23:55 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2017-11-10 23:14:17 +01:00
|
|
|
|
2021-02-23 17:50:13 +07:00
|
|
|
use Rector\Core\Stubs\PHPStanStubLoader;
|
2021-02-05 13:40:28 +01:00
|
|
|
use Tracy\Debugger;
|
2019-10-04 14:55:26 +02:00
|
|
|
|
2017-11-10 23:14:17 +01:00
|
|
|
require_once __DIR__ . '/../vendor/autoload.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
|
|
|
|
2021-02-23 17:50:13 +07:00
|
|
|
$phpStanStubLoader = new PHPStanStubLoader();
|
|
|
|
$phpStanStubLoader->loadStubs();
|
|
|
|
|
2021-02-05 13:40:28 +01:00
|
|
|
// make dump() useful and not nest infinity spam
|
|
|
|
Debugger::$maxDepth = 2;
|