minor #12696 [2.7][Process] Add deprecation message for component (romainneutron)
This PR was merged into the 2.7 branch.
Discussion
----------
[2.7][Process] Add deprecation message for component
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | n/a
| License | MIT
Commits
-------
b9a6b71
Add deprecation message for Process
This commit is contained in:
commit
7575d0d2ca
@ -1057,6 +1057,8 @@ class Process
|
|||||||
*/
|
*/
|
||||||
public function getStdin()
|
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();
|
return $this->getInput();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1085,6 +1087,8 @@ class Process
|
|||||||
*/
|
*/
|
||||||
public function setStdin($stdin)
|
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);
|
return $this->setInput($stdin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user