mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
7ba32aac1f
e12c73eb33
[psr-4] Move tests to main namespace, as part of /src and /packages merge - step 2 (#5407)
16 lines
665 B
PHP
16 lines
665 B
PHP
<?php
|
|
|
|
// this is part of downgrade build
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix202401;
|
|
|
|
use RectorPrefix202401\Nette\Utils\FileSystem;
|
|
use RectorPrefix202401\Nette\Utils\Json;
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
$composerJsonFileContents = FileSystem::read(__DIR__ . '/../composer.json');
|
|
$composerJson = Json::decode($composerJsonFileContents, Json::FORCE_ARRAY);
|
|
$composerJson['replace']['phpstan/phpstan'] = $composerJson['require']['phpstan/phpstan'];
|
|
$modifiedComposerJsonFileContents = Json::encode($composerJson, Json::PRETTY);
|
|
FileSystem::write(__DIR__ . '/../composer.json', $modifiedComposerJsonFileContents);
|
|
echo 'Done!' . \PHP_EOL;
|