Skip to content

Commit

Permalink
Silence invasive deprecation warnings, opt-in for warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
reecefowell committed Jun 8, 2015
1 parent a8f1b01 commit 4b082d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Yaml.php
Expand Up @@ -58,7 +58,7 @@ public static function parse($input, $exceptionOnInvalidType = false, $objectSup
// if input is a file, process it
$file = '';
if (strpos($input, "\n") === false && is_file($input)) {
trigger_error('The ability to pass file names to the '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. Pass the YAML contents of the file instead.', E_USER_DEPRECATED);
@trigger_error('The ability to pass file names to the '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. Pass the YAML contents of the file instead.', E_USER_DEPRECATED);

if (false === is_readable($input)) {
throw new ParseException(sprintf('Unable to parse "%s" as the file is not readable.', $input));
Expand Down

0 comments on commit 4b082d6

Please sign in to comment.