Find the best Rector rule to solve your problem. Searching through 1009 rules.
Found 1 rule. That's the one:
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'));