Add deprecation message for Process

This commit is contained in:
Romain Neutron 2014-11-29 12:53:35 +01:00
parent d94d837e9e
commit b9a6b711d3

View File

@ -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);
}