Find a Rector rule
Find the best Rector rule to solve your problem. Searching through 1005 rules.
Found 1 rule. That's the one: Clear
symfony/yaml
1 match
ParseFileRector
symfony/yaml >=2.8
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'));