[Process] use __METHOD__ where applicable

This commit is contained in:
annesosensio 2016-03-31 10:26:29 +02:00 committed by Fabien Potencier
parent 56d3c264a9
commit 5fd054e282
2 changed files with 2 additions and 2 deletions

View File

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

View File

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