Skip to content

Commit eacd934

Browse files
committed
fixed some deprecation messages
1 parent b769ee4 commit eacd934

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Extension/FormExtension.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class FormExtension extends AbstractExtension implements InitRuntimeInterface
3939
public function __construct($renderer = null)
4040
{
4141
if ($renderer instanceof TwigRendererInterface) {
42-
@trigger_error(sprintf('Passing a Twig Form Renderer to the "%s" constructor is deprecated since version 3.2 and won\'t be possible in 4.0. Pass the Twig\Environment to the TwigRendererEngine constructor instead.', static::class), E_USER_DEPRECATED);
42+
@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);
4343
} elseif (null !== $renderer && !(is_array($renderer) && isset($renderer[0], $renderer[1]) && $renderer[0] instanceof ContainerInterface)) {
4444
throw new \InvalidArgumentException(sprintf('Passing any arguments the constructor of %s is reserved for internal use.', __CLASS__));
4545
}
@@ -116,7 +116,7 @@ public function getTests()
116116
public function __get($name)
117117
{
118118
if ('renderer' === $name) {
119-
@trigger_error(sprintf('Using the "%s::$renderer" property is deprecated since version 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);
120120

121121
if (is_array($this->renderer)) {
122122
$renderer = $this->renderer[0]->get($this->renderer[1]);
@@ -136,7 +136,7 @@ public function __get($name)
136136
public function __set($name, $value)
137137
{
138138
if ('renderer' === $name) {
139-
@trigger_error(sprintf('Using the "%s::$renderer" property is deprecated since version 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);
140140
}
141141

142142
$this->$name = $value;
@@ -148,7 +148,7 @@ public function __set($name, $value)
148148
public function __isset($name)
149149
{
150150
if ('renderer' === $name) {
151-
@trigger_error(sprintf('Using the "%s::$renderer" property is deprecated since version 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);
152152
}
153153

154154
return isset($this->$name);
@@ -160,7 +160,7 @@ public function __isset($name)
160160
public function __unset($name)
161161
{
162162
if ('renderer' === $name) {
163-
@trigger_error(sprintf('Using the "%s::$renderer" property is deprecated since version 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);
164164
}
165165

166166
unset($this->$name);

Extension/YamlExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function encode($input, $inline = 0, $dumpObjects = 0)
4444

4545
if (defined('Symfony\Component\Yaml\Yaml::DUMP_OBJECT')) {
4646
if (is_bool($dumpObjects)) {
47-
@trigger_error('Passing a boolean flag to toggle object support is deprecated since version 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);
4848

4949
$flags = $dumpObjects ? Yaml::DUMP_OBJECT : 0;
5050
} else {

Form/TwigRendererEngine.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class TwigRendererEngine extends AbstractRendererEngine implements TwigRendererE
3434
public function __construct(array $defaultThemes = array(), Environment $environment = null)
3535
{
3636
if (null === $environment) {
37-
@trigger_error(sprintf('Not passing a Twig Environment as the second argument for "%s" constructor is deprecated since version 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);
3838
}
3939

4040
parent::__construct($defaultThemes);
@@ -49,7 +49,7 @@ public function __construct(array $defaultThemes = array(), Environment $environ
4949
public function setEnvironment(Environment $environment)
5050
{
5151
if ($this->environment) {
52-
@trigger_error(sprintf('The "%s()" method is deprecated since version 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);
5353
}
5454

5555
$this->environment = $environment;

0 commit comments

Comments
 (0)