Skip to content

Commit 5fd054e

Browse files
annesosensiofabpot
authored andcommitted
[Process] use __METHOD__ where applicable
1 parent 56d3c26 commit 5fd054e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Process/Process.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ public function setStdin($stdin)
877877
throw new LogicException('STDIN can not be set while the process is running.');
878878
}
879879

880-
$this->stdin = ProcessUtils::validateInput(sprintf('%s::%s', __CLASS__, __FUNCTION__), $stdin);
880+
$this->stdin = ProcessUtils::validateInput(__METHOD__, $stdin);
881881

882882
return $this;
883883
}

src/Symfony/Component/Process/ProcessBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function setEnv($name, $value)
156156
*/
157157
public function setInput($stdin)
158158
{
159-
$this->stdin = ProcessUtils::validateInput(sprintf('%s::%s', __CLASS__, __FUNCTION__), $stdin);
159+
$this->stdin = ProcessUtils::validateInput(__METHOD__, $stdin);
160160

161161
return $this;
162162
}

0 commit comments

Comments
 (0)