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
@@ -139,7 +139,7 @@ public function run(InputInterface $input = null, OutputInterface $output = null
139
139
}
140
140
141
141
if (null !== $this->dispatcher && $this->dispatcher->hasListeners(ConsoleEvents::EXCEPTION)) {
142
-
@trigger_error(sprintf('The "ConsoleEvents::EXCEPTION" event is deprecated since Symfony 3.3 and will be removed in 4.0. Listen to the "ConsoleEvents::ERROR" event instead.'), E_USER_DEPRECATED);
142
+
@trigger_error(sprintf('The "ConsoleEvents::EXCEPTION" event is deprecated since Symfony 3.3 and will be removed in 4.0. Listen to the "ConsoleEvents::ERROR" event instead.'), \E_USER_DEPRECATED);
143
143
}
144
144
145
145
$this->configureIO($input, $output);
@@ -784,7 +784,7 @@ protected function doRenderException(\Exception $e, OutputInterface $output)
// HHVM only accepts 32 bits integer in str_split, even when PHP_INT_MAX is a 64 bit integer: https://github.com/facebook/hhvm/issues/1327
789
789
if (\defined('HHVM_VERSION') && $width > 1 << 31) {
790
790
$width = 1 << 31;
@@ -853,7 +853,7 @@ protected function doRenderException(\Exception $e, OutputInterface $output)
853
853
*/
854
854
protectedfunctiongetTerminalWidth()
855
855
{
856
-
@trigger_error(sprintf('The "%s()" method is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__), E_USER_DEPRECATED);
856
+
@trigger_error(sprintf('The "%s()" method is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__), \E_USER_DEPRECATED);
857
857
858
858
return$this->terminal->getWidth();
859
859
}
@@ -867,7 +867,7 @@ protected function getTerminalWidth()
867
867
*/
868
868
protectedfunctiongetTerminalHeight()
869
869
{
870
-
@trigger_error(sprintf('The "%s()" method is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__), E_USER_DEPRECATED);
870
+
@trigger_error(sprintf('The "%s()" method is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__), \E_USER_DEPRECATED);
871
871
872
872
return$this->terminal->getHeight();
873
873
}
@@ -881,7 +881,7 @@ protected function getTerminalHeight()
881
881
*/
882
882
publicfunctiongetTerminalDimensions()
883
883
{
884
-
@trigger_error(sprintf('The "%s()" method is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__), E_USER_DEPRECATED);
884
+
@trigger_error(sprintf('The "%s()" method is deprecated as of 3.2 and will be removed in 4.0. Create a Terminal instance instead.', __METHOD__), \E_USER_DEPRECATED);
@trigger_error(sprintf('The "%s()" method 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);
903
+
@trigger_error(sprintf('The "%s()" method 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);
904
904
905
905
putenv('COLUMNS='.$width);
906
906
putenv('LINES='.$height);
@@ -1173,7 +1173,7 @@ private function findAlternatives($name, $collection)
1173
1173
}
1174
1174
1175
1175
$alternatives = array_filter($alternatives, function ($lev) use ($threshold) { return$lev < 2 * $threshold; });
Copy file name to clipboardExpand all lines: Command/Command.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,7 @@ public function run(InputInterface $input, OutputInterface $output)
223
223
if (null !== $this->processTitle) {
224
224
if (\function_exists('cli_set_process_title')) {
225
225
if (!@cli_set_process_title($this->processTitle)) {
226
-
if ('Darwin' === PHP_OS) {
226
+
if ('Darwin' === \PHP_OS) {
227
227
$output->writeln('<comment>Running "cli_set_process_title" as an unprivileged user is not supported on MacOS.</comment>', OutputInterface::VERBOSITY_VERY_VERBOSE);
Copy file name to clipboardExpand all lines: Event/ConsoleExceptionEvent.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
12
12
namespaceSymfony\Component\Console\Event;
13
13
14
-
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 3.3 and will be removed in 4.0. Use the ConsoleErrorEvent instead.', ConsoleExceptionEvent::class), E_USER_DEPRECATED);
14
+
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 3.3 and will be removed in 4.0. Use the ConsoleErrorEvent instead.', ConsoleExceptionEvent::class), \E_USER_DEPRECATED);
@@ -196,7 +196,7 @@ private function createStyleFromString($string)
196
196
return$this->styles[$string];
197
197
}
198
198
199
-
if (!preg_match_all('/([^=]+)=([^;]+)(;|$)/', $string, $matches, PREG_SET_ORDER)) {
199
+
if (!preg_match_all('/([^=]+)=([^;]+)(;|$)/', $string, $matches, \PREG_SET_ORDER)) {
200
200
returnfalse;
201
201
}
202
202
@@ -216,7 +216,7 @@ private function createStyleFromString($string)
216
216
try {
217
217
$style->setOption($option);
218
218
} catch (\InvalidArgumentException$e) {
219
-
@trigger_error(sprintf('Unknown style options are deprecated since Symfony 3.2 and will be removed in 4.0. Exception "%s".', $e->getMessage()), E_USER_DEPRECATED);
219
+
@trigger_error(sprintf('Unknown style options are deprecated since Symfony 3.2 and will be removed in 4.0. Exception "%s".', $e->getMessage()), \E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: Helper/QuestionHelper.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ public function ask(InputInterface $input, OutputInterface $output, Question $qu
102
102
*/
103
103
publicfunctionsetInputStream($stream)
104
104
{
105
-
@trigger_error(sprintf('The %s() method is deprecated since Symfony 3.2 and will be removed in 4.0. Use %s::setStream() instead.', __METHOD__, StreamableInputInterface::class), E_USER_DEPRECATED);
105
+
@trigger_error(sprintf('The %s() method is deprecated since Symfony 3.2 and will be removed in 4.0. Use %s::setStream() instead.', __METHOD__, StreamableInputInterface::class), \E_USER_DEPRECATED);
106
106
107
107
if (!\is_resource($stream)) {
108
108
thrownewInvalidArgumentException('Input stream must be a valid resource.');
@@ -122,7 +122,7 @@ public function setInputStream($stream)
122
122
publicfunctiongetInputStream()
123
123
{
124
124
if (0 === \func_num_args() || func_get_arg(0)) {
125
-
@trigger_error(sprintf('The %s() method is deprecated since Symfony 3.2 and will be removed in 4.0. Use %s::getStream() instead.', __METHOD__, StreamableInputInterface::class), E_USER_DEPRECATED);
125
+
@trigger_error(sprintf('The %s() method is deprecated since Symfony 3.2 and will be removed in 4.0. Use %s::getStream() instead.', __METHOD__, StreamableInputInterface::class), \E_USER_DEPRECATED);
126
126
}
127
127
128
128
return$this->inputStream;
@@ -155,7 +155,7 @@ private function doAsk(OutputInterface $output, Question $question)
Copy file name to clipboardExpand all lines: Helper/SymfonyQuestionHelper.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ public function ask(InputInterface $input, OutputInterface $output, Question $qu
41
41
} else {
42
42
// make required
43
43
if (!\is_array($value) && !\is_bool($value) && 0 === \strlen($value)) {
44
-
@trigger_error('The default question validator is deprecated since Symfony 3.3 and will not be used anymore in version 4.0. Set a custom question validator if needed.', E_USER_DEPRECATED);
44
+
@trigger_error('The default question validator is deprecated since Symfony 3.3 and will not be used anymore in version 4.0. Set a custom question validator if needed.', \E_USER_DEPRECATED);
0 commit comments