[Process] use __METHOD__ where applicable
This commit is contained in:
parent
56d3c264a9
commit
5fd054e282
|
@ -877,7 +877,7 @@ class Process
|
|||
throw new LogicException('STDIN can not be set while the process is running.');
|
||||
}
|
||||
|
||||
$this->stdin = ProcessUtils::validateInput(sprintf('%s::%s', __CLASS__, __FUNCTION__), $stdin);
|
||||
$this->stdin = ProcessUtils::validateInput(__METHOD__, $stdin);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
|
@ -156,7 +156,7 @@ class ProcessBuilder
|
|||
*/
|
||||
public function setInput($stdin)
|
||||
{
|
||||
$this->stdin = ProcessUtils::validateInput(sprintf('%s::%s', __CLASS__, __FUNCTION__), $stdin);
|
||||
$this->stdin = ProcessUtils::validateInput(__METHOD__, $stdin);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
Reference in New Issue