Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f1a87db

Browse files
committed
minor #18375 [Process] use __METHOD__ where applicable (annesosensio)
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
2 parents 56d3c26 + 5fd054e commit f1a87db

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)