From e32e5c477d2bddcd4f0f13df185ddd2eaf10ea7c Mon Sep 17 00:00:00 2001 From: annesosensio Date: Thu, 31 Mar 2016 10:26:29 +0200 Subject: [PATCH 1/2] [Process] use __METHOD__ where applicable --- src/Symfony/Component/Process/Process.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index 30313c0318336..7ea27ffbc2e5c 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -877,7 +877,7 @@ public function setStdin($stdin) 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; } From 1f1722cf70d2601d9fc938dc7dcd277ebe7dbbea Mon Sep 17 00:00:00 2001 From: annesosensio Date: Thu, 31 Mar 2016 10:27:45 +0200 Subject: [PATCH 2/2] [Process] use __METHOD__ where applicable --- src/Symfony/Component/Process/ProcessBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Process/ProcessBuilder.php b/src/Symfony/Component/Process/ProcessBuilder.php index 868d284338866..75191f744f342 100644 --- a/src/Symfony/Component/Process/ProcessBuilder.php +++ b/src/Symfony/Component/Process/ProcessBuilder.php @@ -156,7 +156,7 @@ public function setEnv($name, $value) */ public function setInput($stdin) { - $this->stdin = ProcessUtils::validateInput(sprintf('%s::%s', __CLASS__, __FUNCTION__), $stdin); + $this->stdin = ProcessUtils::validateInput(__METHOD__, $stdin); return $this; }