From 552d8efdc80980cbcca50b28d626ac8e36e3cdd1 Mon Sep 17 00:00:00 2001 From: reecefowell Date: Sun, 7 Jun 2015 07:33:05 +0100 Subject: [PATCH] Silence invasive deprecation warnings, opt-in for warnings --- Process.php | 4 ++-- ProcessUtils.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Process.php b/Process.php index fdb395de..1474d698 100644 --- a/Process.php +++ b/Process.php @@ -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(); } @@ -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); } diff --git a/ProcessUtils.php b/ProcessUtils.php index 488010ba..ef36a3f4 100644 --- a/ProcessUtils.php +++ b/ProcessUtils.php @@ -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; }