ParseFileRector

Replaces deprecated Yaml::parse() of file argument with file contents

 use Symfony\Component\Yaml\Yaml;

-$parsedFile = Yaml::parse('someFile.yml');
+$parsedFile = Yaml::parse(file_get_contents('someFile.yml'));

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Symfony\Symfony28\Rector\StaticCall\ParseFileRector;

return RectorConfig::configure()
    ->withRules([
        ParseFileRector::class,
    ]);