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
* 3.3:
fixed some deprecation messages
fixed some deprecation messages
fixed some deprecation messages
fixed some deprecation messages
[2.7][DX] Use constant message contextualisation for deprecations
@trigger_error('Passing callable strings is deprecated since version 3.1 and PropertyAccessDecorator will treat them as property paths in 4.0. You should use a "\Closure" instead.', E_USER_DEPRECATED);
77
+
@trigger_error('Passing callable strings is deprecated since Symfony 3.1 and PropertyAccessDecorator will treat them as property paths in 4.0. You should use a "\Closure" instead.', E_USER_DEPRECATED);
78
78
}
79
79
80
80
if ($valueinstanceof PropertyPath) {
@@ -107,7 +107,7 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, $value = nul
@trigger_error('Passing callable strings is deprecated since version 3.1 and PropertyAccessDecorator will treat them as property paths in 4.0. You should use a "\Closure" instead.', E_USER_DEPRECATED);
110
+
@trigger_error('Passing callable strings is deprecated since Symfony 3.1 and PropertyAccessDecorator will treat them as property paths in 4.0. You should use a "\Closure" instead.', E_USER_DEPRECATED);
111
111
}
112
112
113
113
if ($valueinstanceof PropertyPath) {
@@ -145,7 +145,7 @@ public function createView(ChoiceListInterface $list, $preferredChoices = null,
@trigger_error('Passing callable strings is deprecated since version 3.1 and PropertyAccessDecorator will treat them as property paths in 4.0. You should use a "\Closure" instead.', E_USER_DEPRECATED);
148
+
@trigger_error('Passing callable strings is deprecated since Symfony 3.1 and PropertyAccessDecorator will treat them as property paths in 4.0. You should use a "\Closure" instead.', E_USER_DEPRECATED);
149
149
}
150
150
151
151
if ($labelinstanceof PropertyPath) {
@@ -157,7 +157,7 @@ public function createView(ChoiceListInterface $list, $preferredChoices = null,
157
157
if (is_string($preferredChoices) && !is_callable($preferredChoices)) {
@trigger_error('Passing callable strings is deprecated since version 3.1 and PropertyAccessDecorator will treat them as property paths in 4.0. You should use a "\Closure" instead.', E_USER_DEPRECATED);
160
+
@trigger_error('Passing callable strings is deprecated since Symfony 3.1 and PropertyAccessDecorator will treat them as property paths in 4.0. You should use a "\Closure" instead.', E_USER_DEPRECATED);
161
161
}
162
162
163
163
if ($preferredChoicesinstanceof PropertyPath) {
@@ -174,7 +174,7 @@ public function createView(ChoiceListInterface $list, $preferredChoices = null,
@trigger_error('Passing callable strings is deprecated since version 3.1 and PropertyAccessDecorator will treat them as property paths in 4.0. You should use a "\Closure" instead.', E_USER_DEPRECATED);
177
+
@trigger_error('Passing callable strings is deprecated since Symfony 3.1 and PropertyAccessDecorator will treat them as property paths in 4.0. You should use a "\Closure" instead.', E_USER_DEPRECATED);
178
178
}
179
179
180
180
if ($indexinstanceof PropertyPath) {
@@ -186,7 +186,7 @@ public function createView(ChoiceListInterface $list, $preferredChoices = null,
186
186
if (is_string($groupBy) && !is_callable($groupBy)) {
@trigger_error('Passing callable strings is deprecated since version 3.1 and PropertyAccessDecorator will treat them as property paths in 4.0. You should use a "\Closure" instead.', E_USER_DEPRECATED);
189
+
@trigger_error('Passing callable strings is deprecated since Symfony 3.1 and PropertyAccessDecorator will treat them as property paths in 4.0. You should use a "\Closure" instead.', E_USER_DEPRECATED);
190
190
}
191
191
192
192
if ($groupByinstanceof PropertyPath) {
@@ -202,7 +202,7 @@ public function createView(ChoiceListInterface $list, $preferredChoices = null,
@trigger_error('Passing callable strings is deprecated since version 3.1 and PropertyAccessDecorator will treat them as property paths in 4.0. You should use a "\Closure" instead.', E_USER_DEPRECATED);
205
+
@trigger_error('Passing callable strings is deprecated since Symfony 3.1 and PropertyAccessDecorator will treat them as property paths in 4.0. You should use a "\Closure" instead.', E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: ChoiceList/LazyChoiceList.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ public function getChoices()
77
77
// We can safely invoke the {@link ChoiceLoaderInterface} assuming it has the list
78
78
// in cache when the lazy list is already loaded
79
79
if ($this->loadedList !== $this->loader->loadChoiceList($this->value)) {
80
-
@trigger_error(sprintf('Caching the choice list in %s is deprecated since 3.1 and will not happen in 4.0. Cache the list in the %s instead.', __CLASS__, ChoiceLoaderInterface::class), E_USER_DEPRECATED);
80
+
@trigger_error(sprintf('Caching the choice list in %s is deprecated since Symfony 3.1 and will not happen in 4.0. Cache the list in the %s instead.', __CLASS__, ChoiceLoaderInterface::class), E_USER_DEPRECATED);
81
81
}
82
82
83
83
return$this->loadedList->getChoices();
@@ -100,7 +100,7 @@ public function getValues()
100
100
if ($this->loaded) {
101
101
// Check whether the loader has the same cache
102
102
if ($this->loadedList !== $this->loader->loadChoiceList($this->value)) {
103
-
@trigger_error(sprintf('Caching the choice list in %s is deprecated since 3.1 and will not happen in 4.0. Cache the list in the %s instead.', __CLASS__, ChoiceLoaderInterface::class), E_USER_DEPRECATED);
103
+
@trigger_error(sprintf('Caching the choice list in %s is deprecated since Symfony 3.1 and will not happen in 4.0. Cache the list in the %s instead.', __CLASS__, ChoiceLoaderInterface::class), E_USER_DEPRECATED);
104
104
}
105
105
106
106
return$this->loadedList->getValues();
@@ -123,7 +123,7 @@ public function getStructuredValues()
123
123
if ($this->loaded) {
124
124
// Check whether the loader has the same cache
125
125
if ($this->loadedList !== $this->loader->loadChoiceList($this->value)) {
126
-
@trigger_error(sprintf('Caching the choice list in %s is deprecated since 3.1 and will not happen in 4.0. Cache the list in the %s instead.', __CLASS__, ChoiceLoaderInterface::class), E_USER_DEPRECATED);
126
+
@trigger_error(sprintf('Caching the choice list in %s is deprecated since Symfony 3.1 and will not happen in 4.0. Cache the list in the %s instead.', __CLASS__, ChoiceLoaderInterface::class), E_USER_DEPRECATED);
127
127
}
128
128
129
129
return$this->loadedList->getStructuredValues();
@@ -146,7 +146,7 @@ public function getOriginalKeys()
146
146
if ($this->loaded) {
147
147
// Check whether the loader has the same cache
148
148
if ($this->loadedList !== $this->loader->loadChoiceList($this->value)) {
149
-
@trigger_error(sprintf('Caching the choice list in %s is deprecated since 3.1 and will not happen in 4.0. Cache the list in the %s instead.', __CLASS__, ChoiceLoaderInterface::class), E_USER_DEPRECATED);
149
+
@trigger_error(sprintf('Caching the choice list in %s is deprecated since Symfony 3.1 and will not happen in 4.0. Cache the list in the %s instead.', __CLASS__, ChoiceLoaderInterface::class), E_USER_DEPRECATED);
150
150
}
151
151
152
152
return$this->loadedList->getOriginalKeys();
@@ -169,7 +169,7 @@ public function getChoicesForValues(array $values)
169
169
if ($this->loaded) {
170
170
// Check whether the loader has the same cache
171
171
if ($this->loadedList !== $this->loader->loadChoiceList($this->value)) {
172
-
@trigger_error(sprintf('Caching the choice list in %s is deprecated since 3.1 and will not happen in 4.0. Cache the list in the %s instead.', __CLASS__, ChoiceLoaderInterface::class), E_USER_DEPRECATED);
172
+
@trigger_error(sprintf('Caching the choice list in %s is deprecated since Symfony 3.1 and will not happen in 4.0. Cache the list in the %s instead.', __CLASS__, ChoiceLoaderInterface::class), E_USER_DEPRECATED);
@@ -186,7 +186,7 @@ public function getValuesForChoices(array $choices)
186
186
if ($this->loaded) {
187
187
// Check whether the loader has the same cache
188
188
if ($this->loadedList !== $this->loader->loadChoiceList($this->value)) {
189
-
@trigger_error(sprintf('Caching the choice list in %s is deprecated since 3.1 and will not happen in 4.0. Cache the list in the %s instead.', __CLASS__, ChoiceLoaderInterface::class), E_USER_DEPRECATED);
189
+
@trigger_error(sprintf('Caching the choice list in %s is deprecated since Symfony 3.1 and will not happen in 4.0. Cache the list in the %s instead.', __CLASS__, ChoiceLoaderInterface::class), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: Extension/Core/EventListener/ResizeFormListener.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ public function preSubmit(FormEvent $event)
89
89
$data = $event->getData();
90
90
91
91
if ($datainstanceof \Traversable && $datainstanceof \ArrayAccess) {
92
-
@trigger_error('Support for objects implementing both \Traversable and \ArrayAccess is deprecated since version 3.1 and will be removed in 4.0. Use an array instead.', E_USER_DEPRECATED);
92
+
@trigger_error('Support for objects implementing both \Traversable and \ArrayAccess is deprecated since Symfony 3.1 and will be removed in 4.0. Use an array instead.', E_USER_DEPRECATED);
93
93
}
94
94
95
95
if (!is_array($data) && !($datainstanceof \Traversable && $datainstanceof \ArrayAccess)) {
Copy file name to clipboardExpand all lines: Extension/Core/Type/ChoiceType.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -280,7 +280,7 @@ public function configureOptions(OptionsResolver $resolver)
280
280
thrownew \RuntimeException(sprintf('The "choices_as_values" option of the %s should not be used. Remove it and flip the contents of the "choices" option instead.', get_class($this)));
281
281
}
282
282
283
-
@trigger_error('The "choices_as_values" option is deprecated since version 3.1 and will be removed in 4.0. You should not use it anymore.', E_USER_DEPRECATED);
283
+
@trigger_error('The "choices_as_values" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore.', E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: Extension/Core/Type/CountryType.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ public function configureOptions(OptionsResolver $resolver)
39
39
$resolver->setDefaults(array(
40
40
'choice_loader' => function (Options$options) {
41
41
if ($options['choices']) {
42
-
@trigger_error(sprintf('Using the "choices" option in %s has been deprecated since version 3.3 and will be ignored in 4.0. Override the "choice_loader" option instead or set it to null.', __CLASS__), E_USER_DEPRECATED);
42
+
@trigger_error(sprintf('Using the "choices" option in %s has been deprecated since Symfony 3.3 and will be ignored in 4.0. Override the "choice_loader" option instead or set it to null.', __CLASS__), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: Extension/Core/Type/CurrencyType.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ public function configureOptions(OptionsResolver $resolver)
39
39
$resolver->setDefaults(array(
40
40
'choice_loader' => function (Options$options) {
41
41
if ($options['choices']) {
42
-
@trigger_error(sprintf('Using the "choices" option in %s has been deprecated since version 3.3 and will be ignored in 4.0. Override the "choice_loader" option instead or set it to null.', __CLASS__), E_USER_DEPRECATED);
42
+
@trigger_error(sprintf('Using the "choices" option in %s has been deprecated since Symfony 3.3 and will be ignored in 4.0. Override the "choice_loader" option instead or set it to null.', __CLASS__), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: Extension/Core/Type/LanguageType.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ public function configureOptions(OptionsResolver $resolver)
39
39
$resolver->setDefaults(array(
40
40
'choice_loader' => function (Options$options) {
41
41
if ($options['choices']) {
42
-
@trigger_error(sprintf('Using the "choices" option in %s has been deprecated since version 3.3 and will be ignored in 4.0. Override the "choice_loader" option instead or set it to null.', __CLASS__), E_USER_DEPRECATED);
42
+
@trigger_error(sprintf('Using the "choices" option in %s has been deprecated since Symfony 3.3 and will be ignored in 4.0. Override the "choice_loader" option instead or set it to null.', __CLASS__), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: Extension/Core/Type/LocaleType.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ public function configureOptions(OptionsResolver $resolver)
39
39
$resolver->setDefaults(array(
40
40
'choice_loader' => function (Options$options) {
41
41
if ($options['choices']) {
42
-
@trigger_error(sprintf('Using the "choices" option in %s has been deprecated since version 3.3 and will be ignored in 4.0. Override the "choice_loader" option instead or set it to null.', __CLASS__), E_USER_DEPRECATED);
42
+
@trigger_error(sprintf('Using the "choices" option in %s has been deprecated since Symfony 3.3 and will be ignored in 4.0. Override the "choice_loader" option instead or set it to null.', __CLASS__), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: Extension/Core/Type/TimezoneType.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ public function configureOptions(OptionsResolver $resolver)
51
51
$resolver->setDefaults(array(
52
52
'choice_loader' => function (Options$options) {
53
53
if ($options['choices']) {
54
-
@trigger_error(sprintf('Using the "choices" option in %s has been deprecated since version 3.3 and will be ignored in 4.0. Override the "choice_loader" option instead or set it to null.', __CLASS__), E_USER_DEPRECATED);
54
+
@trigger_error(sprintf('Using the "choices" option in %s has been deprecated since Symfony 3.3 and will be ignored in 4.0. Override the "choice_loader" option instead or set it to null.', __CLASS__), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: Form.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -734,7 +734,7 @@ public function isEmpty()
734
734
publicfunctionisValid()
735
735
{
736
736
if (!$this->submitted) {
737
-
@trigger_error('Call Form::isValid() with an unsubmitted form is deprecated since version 3.2 and will throw an exception in 4.0. Use Form::isSubmitted() before Form::isValid() instead.', E_USER_DEPRECATED);
737
+
@trigger_error('Call Form::isValid() with an unsubmitted form is deprecated since Symfony 3.2 and will throw an exception in 4.0. Use Form::isSubmitted() before Form::isValid() instead.', E_USER_DEPRECATED);
0 commit comments