raymondjavaxx / swearjar-php

Profanity detection PHP library
14 stars 9 forks source link

Update Yaml::parse call with a string instead of a path #3

Closed chromepenguin closed 9 years ago

chromepenguin commented 9 years ago

This avoids the deprecation warning when you call Yaml::parse with a path since version 2.2:

PHP Deprecated:  The ability to pass file names to the Symfony\Component\Yaml\Yaml::parse method is deprecated since version 2.2 and will be removed in 3.0. Pass the YAML contents of the file instead. in /vendor/symfony/yaml/Symfony/Component/Yaml/Yaml.php on line 58
raymondjavaxx commented 9 years ago

Thanks!