Find the best Rector rule to solve your problem. Searching through 1009 rules.

Found 1 rule. That's the one:

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'));
SETS:  symfony/yaml
PACKAGE:  symfony/yaml >=2.8