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('Passing a command name as the first argument of "%s" is deprecated since version 3.4 and will be removed in 4.0. If the command was registered by convention, make it a service instead.', __METHOD__), E_USER_DEPRECATED);
42
+
@trigger_error(sprintf('Passing a command name as the first argument of "%s" is deprecated since Symfony 3.4 and will be removed in 4.0. If the command was registered by convention, make it a service instead.', __METHOD__), E_USER_DEPRECATED);
43
43
44
44
parent::__construct($twig);
45
45
@@ -54,7 +54,7 @@ public function __construct($twig = null, $projectDir = null)
@trigger_error(sprintf('Method "%s" is deprecated since version 3.4 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
57
+
@trigger_error(sprintf('Method "%s" is deprecated since Symfony 3.4 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
58
58
59
59
$this->twig = $twig;
60
60
}
@@ -64,7 +64,7 @@ public function setTwigEnvironment(Environment $twig)
64
64
*/
65
65
protectedfunctiongetTwigEnvironment()
66
66
{
67
-
@trigger_error(sprintf('Method "%s" is deprecated since version 3.4 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
67
+
@trigger_error(sprintf('Method "%s" is deprecated since Symfony 3.4 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
68
68
69
69
return$this->twig;
70
70
}
@@ -105,7 +105,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
105
105
if (__CLASS__ !== get_class($this)) {
106
106
$r = new \ReflectionMethod($this, 'getTwigEnvironment');
107
107
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
108
-
@trigger_error(sprintf('Usage of method "%s" is deprecated since version 3.4 and will no longer be supported in 4.0. Construct the command with its required arguments instead.', get_class($this).'::getTwigEnvironment'), E_USER_DEPRECATED);
108
+
@trigger_error(sprintf('Usage of method "%s" is deprecated since Symfony 3.4 and will no longer be supported in 4.0. Construct the command with its required arguments instead.', get_class($this).'::getTwigEnvironment'), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: Command/LintCommand.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ class LintCommand extends Command
41
41
publicfunction__construct($twig = null)
42
42
{
43
43
if (!$twiginstanceof Environment) {
44
-
@trigger_error(sprintf('Passing a command name as the first argument of "%s" is deprecated since version 3.4 and will be removed in 4.0. If the command was registered by convention, make it a service instead.', __METHOD__), E_USER_DEPRECATED);
44
+
@trigger_error(sprintf('Passing a command name as the first argument of "%s" is deprecated since Symfony 3.4 and will be removed in 4.0. If the command was registered by convention, make it a service instead.', __METHOD__), E_USER_DEPRECATED);
45
45
46
46
parent::__construct($twig);
47
47
@@ -55,7 +55,7 @@ public function __construct($twig = null)
@trigger_error(sprintf('Method "%s" is deprecated since version 3.4 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
58
+
@trigger_error(sprintf('Method "%s" is deprecated since Symfony 3.4 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
59
59
60
60
$this->twig = $twig;
61
61
}
@@ -65,7 +65,7 @@ public function setTwigEnvironment(Environment $twig)
65
65
*/
66
66
protectedfunctiongetTwigEnvironment()
67
67
{
68
-
@trigger_error(sprintf('Method "%s" is deprecated since version 3.4 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
68
+
@trigger_error(sprintf('Method "%s" is deprecated since Symfony 3.4 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
69
69
70
70
return$this->twig;
71
71
}
@@ -106,7 +106,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
106
106
if (__CLASS__ !== get_class($this)) {
107
107
$r = new \ReflectionMethod($this, 'getTwigEnvironment');
108
108
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
109
-
@trigger_error(sprintf('Usage of method "%s" is deprecated since version 3.4 and will no longer be supported in 4.0. Construct the command with its required arguments instead.', get_class($this).'::getTwigEnvironment'), E_USER_DEPRECATED);
109
+
@trigger_error(sprintf('Usage of method "%s" is deprecated since Symfony 3.4 and will no longer be supported in 4.0. Construct the command with its required arguments instead.', get_class($this).'::getTwigEnvironment'), E_USER_DEPRECATED);
@trigger_error(sprintf('The %s class is deprecated since version 3.4 and will be removed in 4.0. Use %s instead.', TwigRenderer::class, FormRenderer::class), E_USER_DEPRECATED);
18
+
@trigger_error(sprintf('The %s class is deprecated since Symfony 3.4 and will be removed in 4.0. Use %s instead.', TwigRenderer::class, FormRenderer::class), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: Tests/Command/LintCommandTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ public function testLintFileCompileTimeException()
70
70
71
71
/**
72
72
* @group legacy
73
-
* @expectedDeprecation Passing a command name as the first argument of "Symfony\Bridge\Twig\Command\LintCommand::__construct" is deprecated since version 3.4 and will be removed in 4.0. If the command was registered by convention, make it a service instead.
73
+
* @expectedDeprecation Passing a command name as the first argument of "Symfony\Bridge\Twig\Command\LintCommand::__construct" is deprecated since Symfony 3.4 and will be removed in 4.0. If the command was registered by convention, make it a service instead.
74
74
* @expectedException \RuntimeException
75
75
* @expectedExceptionMessage The Twig environment needs to be set.
0 commit comments