rector/tests/bootstrap.php
Tomas Votruba ac7a03f800
[php-parser] upgrade to 4.10.5 - add src/constants.php to mimic new PHP 8.1 tokens; update test with unicode (#6325)
* add src/constants.php to mimic new PHP 8.1 tokens; update test with unicode

* include preload in dev repository too

* include preload function
2021-05-04 14:21:34 +02:00

21 lines
469 B
PHP

<?php
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';
// silent deprecations, since we test them
error_reporting(E_ALL ^ E_DEPRECATED);
// performance boost
gc_disable();
$phpStanStubLoader = new PHPStanStubLoader();
$phpStanStubLoader->loadStubs();