8000 minor #19072 [Console] remove BC breaking argument (xabbuh) · symfony/symfony@0005958 · GitHub
[go: up one dir, main page]

Skip to content
660B

Commit 0005958

Browse files
minor #19072 [Console] remove BC breaking argument (xabbuh)
This PR was merged into the 3.2-dev branch. Discussion ---------- [Console] remove BC breaking argument | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #18999 (comment) | License | MIT | Doc PR | Commits ------- f574330 remove BC breaking argument
2 parents a627bba + f574330 commit 0005958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Console/Helper/QuestionHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ public function setInputStream($stream)
9999
*
100100
* @return resource
101101
*/
102-
public function getInputStream($triggerDeprecationError = true)
102+
public function getInputStream()
103103
{
104-
if ($triggerDeprecationError) {
104+
if (0 === func_num_args() || func_get_arg(0)) {
105105
@trigger_error(sprintf('The %s() method is deprecated since version 3.2 and will be removed in 4.0. Use %s:getStream() instead.', __METHOD__, StreamableInputInterface::class), E_USER_DEPRECATED);
106106
}
107107

0 commit comments

Comments
 (0)
0