Skip to content

Commit f574330

Browse files
committed
remove BC breaking argument
1 parent 9759a35 commit f574330

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)