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 eb27f45 commit 552d8ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ public function setEnv(array $env)
*/
public function getStdin()
{
trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use the getInput() method instead.', E_USER_DEPRECATED);
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use the getInput() method instead.', E_USER_DEPRECATED);

return $this->getInput();
}
Expand Down Expand Up @@ -1099,7 +1099,7 @@ public function getInput()
*/
public function setStdin($stdin)
{
trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use the setInput() method instead.', E_USER_DEPRECATED);
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use the setInput() method instead.', E_USER_DEPRECATED);

return $this->setInput($stdin);
}
Expand Down
2 changes: 1 addition & 1 deletion ProcessUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static function validateInput($caller, $input)
}
// deprecated as of Symfony 2.5, to be removed in 3.0
if (is_object($input) && method_exists($input, '__toString')) {
trigger_error('Passing an object as an input is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
@trigger_error('Passing an object as an input is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);

return (string) $input;
}
Expand Down

0 comments on commit 552d8ef

Please sign in to comment.