mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-16 05:44:59 +01:00
* add src/constants.php to mimic new PHP 8.1 tokens; update test with unicode * include preload in dev repository too * include preload function
21 lines
469 B
PHP
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();
|