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 Symfony 3.4 and support for it will be removed in 4.0. If the command was registered by convention, make it a service instead.', __METHOD__), E_USER_DEPRECATED);
43
+
@trigger_error(sprintf('Passing a command name as the first argument of "%s()" is deprecated since Symfony 3.4 and support for it will be removed in 4.0. If the command was registered by convention, make it a service instead.', __METHOD__), \E_USER_DEPRECATED);
44
44
45
45
parent::__construct($twig);
46
46
@@ -55,7 +55,7 @@ public function __construct($twig = null, $projectDir = null)
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 3.4 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
58
+
@trigger_error(sprintf('The "%s()" method 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('The "%s()" method is deprecated since Symfony 3.4 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
68
+
@trigger_error(sprintf('The "%s()" method 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
}
@@ -107,7 +107,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
107
107
if (__CLASS__ !== static::class) {
108
108
$r = new \ReflectionMethod($this, 'getTwigEnvironment');
109
109
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
110
-
@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.', static::class.'::getTwigEnvironment'), E_USER_DEPRECATED);
110
+
@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.', static::class.'::getTwigEnvironment'), \E_USER_DEPRECATED);
111
111
112
112
$this->twig = $this->getTwigEnvironment();
113
113
}
@@ -134,7 +134,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
Copy file name to clipboardExpand all lines: Command/LintCommand.php
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ class LintCommand extends Command
43
43
publicfunction__construct($twig = null)
44
44
{
45
45
if (!$twiginstanceof Environment) {
46
-
@trigger_error(sprintf('Passing a command name as the first argument of "%s()" is deprecated since Symfony 3.4 and support for it will be removed in 4.0. If the command was registered by convention, make it a service instead.', __METHOD__), E_USER_DEPRECATED);
46
+
@trigger_error(sprintf('Passing a command name as the first argument of "%s()" is deprecated since Symfony 3.4 and support for it will be removed in 4.0. If the command was registered by convention, make it a service instead.', __METHOD__), \E_USER_DEPRECATED);
47
47
48
48
parent::__construct($twig);
49
49
@@ -57,7 +57,7 @@ public function __construct($twig = null)
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 3.4 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
60
+
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 3.4 and will be removed in 4.0.', __METHOD__), \E_USER_DEPRECATED);
61
61
62
62
$this->twig = $twig;
63
63
}
@@ -67,7 +67,7 @@ public function setTwigEnvironment(Environment $twig)
67
67
*/
68
68
protectedfunctiongetTwigEnvironment()
69
69
{
70
-
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 3.4 and will be removed in 4.0.', __METHOD__), E_USER_DEPRECATED);
70
+
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 3.4 and will be removed in 4.0.', __METHOD__), \E_USER_DEPRECATED);
71
71
72
72
return$this->twig;
73
73
}
@@ -108,7 +108,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
108
108
if (__CLASS__ !== static::class) {
109
109
$r = new \ReflectionMethod($this, 'getTwigEnvironment');
110
110
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
111
-
@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.', static::class.'::getTwigEnvironment'), E_USER_DEPRECATED);
111
+
@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.', static::class.'::getTwigEnvironment'), \E_USER_DEPRECATED);
112
112
113
113
$this->twig = $this->getTwigEnvironment();
114
114
}
@@ -120,13 +120,13 @@ protected function execute(InputInterface $input, OutputInterface $output)
120
120
$filenames = $input->getArgument('filename');
121
121
122
122
if (0 === \count($filenames)) {
123
-
if (0 !== ftell(STDIN)) {
123
+
if (0 !== ftell(\STDIN)) {
124
124
thrownewRuntimeException('Please provide a filename or pipe template content to STDIN.');
@@ -188,7 +188,7 @@ public function formatFile($file, $line, $text = null)
188
188
}
189
189
190
190
if (false !== $link = $this->getFileLink($file, $line)) {
191
-
returnsprintf('<a href="%s" title="Click to open this file" class="file_link">%s</a>', htmlspecialchars($link, ENT_COMPAT | ENT_SUBSTITUTE, $this->charset), $text);
191
+
returnsprintf('<a href="%s" title="Click to open this file" class="file_link">%s</a>', htmlspecialchars($link, \ENT_COMPAT | \ENT_SUBSTITUTE, $this->charset), $text);
192
192
}
193
193
194
194
return$text;
@@ -236,7 +236,7 @@ public function formatLogMessage($message, array $context)
Copy file name to clipboardExpand all lines: Extension/FormExtension.php
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ class FormExtension extends AbstractExtension implements InitRuntimeInterface
38
38
publicfunction__construct($renderer = null)
39
39
{
40
40
if ($rendererinstanceof TwigRendererInterface) {
41
-
@trigger_error(sprintf('Passing a Twig Form Renderer to the "%s" constructor is deprecated since Symfony 3.2 and won\'t be possible in 4.0. Pass the Twig\Environment to the TwigRendererEngine constructor instead.', static::class), E_USER_DEPRECATED);
41
+
@trigger_error(sprintf('Passing a Twig Form Renderer to the "%s" constructor is deprecated since Symfony 3.2 and won\'t be possible in 4.0. Pass the Twig\Environment to the TwigRendererEngine constructor instead.', static::class), \E_USER_DEPRECATED);
thrownew \InvalidArgumentException(sprintf('Passing any arguments to the constructor of "%s" is reserved for internal use.', __CLASS__));
44
44
}
@@ -116,7 +116,7 @@ public function getTests()
116
116
publicfunction__get($name)
117
117
{
118
118
if ('renderer' === $name) {
119
-
@trigger_error(sprintf('Using the "%s::$renderer" property is deprecated since Symfony 3.2 as it will be removed in 4.0.', __CLASS__), E_USER_DEPRECATED);
119
+
@trigger_error(sprintf('Using the "%s::$renderer" property is deprecated since Symfony 3.2 as it will be removed in 4.0.', __CLASS__), \E_USER_DEPRECATED);
@trigger_error(sprintf('Using the "%s::$renderer" property is deprecated since Symfony 3.2 as it will be removed in 4.0.', __CLASS__), E_USER_DEPRECATED);
139
+
@trigger_error(sprintf('Using the "%s::$renderer" property is deprecated since Symfony 3.2 as it will be removed in 4.0.', __CLASS__), \E_USER_DEPRECATED);
140
140
}
141
141
142
142
$this->$name = $value;
@@ -148,7 +148,7 @@ public function __set($name, $value)
148
148
publicfunction__isset($name)
149
149
{
150
150
if ('renderer' === $name) {
151
-
@trigger_error(sprintf('Using the "%s::$renderer" property is deprecated since Symfony 3.2 as it will be removed in 4.0.', __CLASS__), E_USER_DEPRECATED);
151
+
@trigger_error(sprintf('Using the "%s::$renderer" property is deprecated since Symfony 3.2 as it will be removed in 4.0.', __CLASS__), \E_USER_DEPRECATED);
152
152
}
153
153
154
154
returnisset($this->$name);
@@ -160,7 +160,7 @@ public function __isset($name)
160
160
publicfunction__unset($name)
161
161
{
162
162
if ('renderer' === $name) {
163
-
@trigger_error(sprintf('Using the "%s::$renderer" property is deprecated since Symfony 3.2 as it will be removed in 4.0.', __CLASS__), E_USER_DEPRECATED);
163
+
@trigger_error(sprintf('Using the "%s::$renderer" property is deprecated since Symfony 3.2 as it will be removed in 4.0.', __CLASS__), \E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: Extension/YamlExtension.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ public function encode($input, $inline = 0, $dumpObjects = 0)
44
44
45
45
if (\defined('Symfony\Component\Yaml\Yaml::DUMP_OBJECT')) {
46
46
if (\is_bool($dumpObjects)) {
47
-
@trigger_error('Passing a boolean flag to toggle object support is deprecated since Symfony 3.1 and will be removed in 4.0. Use the Yaml::DUMP_OBJECT flag instead.', E_USER_DEPRECATED);
47
+
@trigger_error('Passing a boolean flag to toggle object support is deprecated since Symfony 3.1 and will be removed in 4.0. Use the Yaml::DUMP_OBJECT flag instead.', \E_USER_DEPRECATED);
@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);
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);
@trigger_error(sprintf('Not passing a Twig Environment as the second argument for "%s" constructor is deprecated since Symfony 3.2 and won\'t be possible in 4.0.', static::class), E_USER_DEPRECATED);
37
+
@trigger_error(sprintf('Not passing a Twig Environment as the second argument for "%s" constructor is deprecated since Symfony 3.2 and won\'t be possible in 4.0.', static::class), \E_USER_DEPRECATED);
38
38
}
39
39
40
40
parent::__construct($defaultThemes);
@@ -49,7 +49,7 @@ public function __construct(array $defaultThemes = [], Environment $environment
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 3.3 and will be removed in 4.0. Pass the Twig Environment as second argument of the constructor instead.', __METHOD__), E_USER_DEPRECATED);
52
+
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 3.3 and will be removed in 4.0. Pass the Twig Environment as second argument of the constructor instead.', __METHOD__), \E_USER_DEPRECATED);
0 commit comments