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
if ($triggerDeprecation && null !== $this->renderer) {
31
31
@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);
32
32
}
33
33
$this->renderer = $renderer;
@@ -94,6 +94,54 @@ public function getTests()
94
94
);
95
95
}
96
96
97
+
/**
98
+
* @internal
99
+
*/
100
+
publicfunction__get($name)
101
+
{
102
+
if ('renderer' === $name) {
103
+
@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);
104
+
}
105
+
106
+
return$this->$name;
107
+
}
108
+
109
+
/**
110
+
* @internal
111
+
*/
112
+
publicfunction__set($name, $value)
113
+
{
114
+
if ('renderer' === $name) {
115
+
@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);
116
+
}
117
+
118
+
$this->$name = $value;
119
+
}
120
+
121
+
/**
122
+
* @internal
123
+
*/
124
+
publicfunction__isset($name)
125
+
{
126
+
if ('renderer' === $name) {
127
+
@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);
128
+
}
129
+
130
+
returnisset($this->$name);
131
+
}
132
+
133
+
/**
134
+
* @internal
135
+
*/
136
+
publicfunction__unset($name)
137
+
{
138
+
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);
0 commit comments