From 5fd054e282edfc3976dfe4f5661300fd63726391 Mon Sep 17 00:00:00 2001 From: annesosensio Date: Thu, 31 Mar 2016 10:26:29 +0200 Subject: [PATCH] [Process] use __METHOD__ where applicable --- src/Symfony/Component/Process/Process.php | 2 +- src/Symfony/Component/Process/ProcessBuilder.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index 30313c0318..7ea27ffbc2 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -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; } diff --git a/src/Symfony/Component/Process/ProcessBuilder.php b/src/Symfony/Component/Process/ProcessBuilder.php index 868d284338..75191f744f 100644 --- a/src/Symfony/Component/Process/ProcessBuilder.php +++ b/src/Symfony/Component/Process/ProcessBuilder.php @@ -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; }