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('createView() - $label - treats callable strings as callable and is deprecated since version 3.1.', E_USER_DEPRECATED);
167
+
@trigger_error('createView() - $label - Treating strings as callable is deprecated since version 3.1 and will throw an error in 4.0. You should use a "\Closure" instead', E_USER_DEPRECATED);
168
+
168
169
$label = function ($choice) use ($label) {
169
170
return$label($choice);
170
171
};
@@ -179,7 +180,8 @@ public function createView(ChoiceListInterface $list, $preferredChoices = null,
179
180
if (is_string($preferredChoices) && !is_callable($preferredChoices)) {
@trigger_error('createView() - $preferredChoices - treats callable strings as callable and is deprecated since version 3.1.', E_USER_DEPRECATED);
183
+
@trigger_error('createView() - $preferredChoices - Treating strings as callable is deprecated since version 3.1 and will throw an error in 4.0. You should use a "\Closure" instead', E_USER_DEPRECATED);
184
+
183
185
$preferredChoices = function ($choice) use ($preferredChoices) {
184
186
return$preferredChoices($choice);
185
187
};
@@ -199,7 +201,8 @@ public function createView(ChoiceListInterface $list, $preferredChoices = null,
@trigger_error('createView() - $index - treats callable strings as callable and is deprecated since version 3.1.', E_USER_DEPRECATED);
204
+
@trigger_error('createView() - $index - Treating strings as callable is deprecated since version 3.1 and will throw an error in 4.0. You should use a "\Closure" instead', E_USER_DEPRECATED);
205
+
203
206
$index = function ($choice) use ($index) {
204
207
return$index($choice);
205
208
};
@@ -214,7 +217,8 @@ public function createView(ChoiceListInterface $list, $preferredChoices = null,
214
217
if (is_string($groupBy) && !is_callable($groupBy)) {
@trigger_error('createView() - $groupBy - treats callable strings as callable and is deprecated since version 3.1.', E_USER_DEPRECATED);
220
+
@trigger_error('createView() - $groupBy - Treating strings as callable is deprecated since version 3.1 and will throw an error in 4.0. You should use a "\Closure" instead', E_USER_DEPRECATED);
221
+
218
222
$groupBy = function ($choice) use ($groupBy) {
219
223
return$groupBy($choice);
220
224
};
@@ -233,7 +237,8 @@ public function createView(ChoiceListInterface $list, $preferredChoices = null,
@trigger_error('createView() - $attr - treats callable strings as callable and is deprecated since version 3.1.', E_USER_DEPRECATED);
240
+
@trigger_error('createView() - $attr - Treating strings as callable is deprecated since version 3.1 and will throw an error in 4.0. You should use a "\Closure" instead', E_USER_DEPRECATED);
0 commit comments