You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@trigger_error(sprintf('%s is deprecated as of 3.2 and will be removed in 4.0. Set the COLUMNS and LINES env vars instead.', __METHOD__), E_USER_DEPRECATED);
793
-
794
-
putenv('COLUMNS='.$width);
795
-
putenv('LINES='.$height);
796
-
797
-
return$this;
798
-
}
799
-
800
736
/**
801
737
* Configures the input and output instances based on the user arguments and options.
802
738
*
@@ -820,12 +756,6 @@ protected function configureIO(InputInterface $input, OutputInterface $output)
820
756
$inputStream = $input->getStream();
821
757
}
822
758
823
-
// This check ensures that calling QuestionHelper::setInputStream() works
824
-
// To be removed in 4.0 (in the same time as QuestionHelper::setInputStream)
825
-
if (!$inputStream && $this->getHelperSet()->has('question')) {
* Sets the input stream to read from when interacting with the user.
73
-
*
74
-
* This is mainly useful for testing purpose.
75
-
*
76
-
* @deprecated since version 3.2, to be removed in 4.0. Use
77
-
* StreamableInputInterface::setStream() instead.
78
-
*
79
-
* @param resource $stream The input stream
80
-
*
81
-
* @throws InvalidArgumentException In case the stream is not a resource
82
-
*/
83
-
publicfunctionsetInputStream($stream)
84
-
{
85
-
@trigger_error(sprintf('The %s() method is deprecated since version 3.2 and will be removed in 4.0. Use %s::setStream() instead.', __METHOD__, StreamableInputInterface::class), E_USER_DEPRECATED);
86
-
87
-
if (!is_resource($stream)) {
88
-
thrownewInvalidArgumentException('Input stream must be a valid resource.');
89
-
}
90
-
91
-
$this->inputStream = $stream;
92
-
}
93
-
94
-
/**
95
-
* Returns the helper's input stream.
96
-
*
97
-
* @deprecated since version 3.2, to be removed in 4.0. Use
98
-
* StreamableInputInterface::getStream() instead.
99
-
*
100
-
* @return resource
101
-
*/
102
-
publicfunctiongetInputStream()
103
-
{
104
-
if (0 === func_num_args() || func_get_arg(0)) {
105
-
@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);
0 commit comments