From b9a6b711d37f993cbc18f389c299198889cf98ad Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Sat, 29 Nov 2014 12:53:35 +0100 Subject: [PATCH] Add deprecation message for Process --- src/Symfony/Component/Process/Process.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index d1d0ae1066..ccfa0568cc 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -1057,6 +1057,8 @@ class Process */ public function getStdin() { + trigger_error('getStdin() is deprecated since version 2.5 and will be removed in 3.0, use getInput() instead.', E_USER_DEPRECATED); + return $this->getInput(); } @@ -1085,6 +1087,8 @@ class Process */ public function setStdin($stdin) { + trigger_error('setStdin() is deprecated since version 2.5 and will be removed in 3.0, use setInput() instead.', E_USER_DEPRECATED); + return $this->setInput($stdin); }