Skip to content

Commit

Permalink
minor #18375 [Process] use __METHOD__ where applicable (annesosensio)
Browse files Browse the repository at this point in the history
This PR was squashed before being merged into the 2.3 branch (closes #18375).

Discussion
----------

[Process] use __METHOD__ where applicable

| Q             | A
| ------------- | ---
| Branch?       | 2.3
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

5fd054e [Process] use __METHOD__ where applicable
  • Loading branch information
fabpot committed Mar 31, 2016
2 parents 56d3c26 + 5fd054e commit f1a87db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Process/Process.php
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Process/ProcessBuilder.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit f1a87db

Please sign in to comment.