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('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);
73
+
@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);
74
74
}
75
75
76
76
if ($valueinstanceof PropertyPath) {
@@ -101,7 +101,7 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, $value = nul
101
101
if (\is_string($value) && !\is_callable($value)) {
@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);
104
+
@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);
105
105
}
106
106
107
107
if ($valueinstanceof PropertyPath) {
@@ -137,7 +137,7 @@ public function createView(ChoiceListInterface $list, $preferredChoices = null,
137
137
if (\is_string($label) && !\is_callable($label)) {
@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);
140
+
@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);
141
141
}
142
142
143
143
if ($labelinstanceof PropertyPath) {
@@ -149,7 +149,7 @@ public function createView(ChoiceListInterface $list, $preferredChoices = null,
149
149
if (\is_string($preferredChoices) && !\is_callable($preferredChoices)) {
@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);
152
+
@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);
153
153
}
154
154
155
155
if ($preferredChoicesinstanceof PropertyPath) {
@@ -166,7 +166,7 @@ public function createView(ChoiceListInterface $list, $preferredChoices = null,
166
166
if (\is_string($index) && !\is_callable($index)) {
@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);
169
+
@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);
170
170
}
171
171
172
172
if ($indexinstanceof PropertyPath) {
@@ -178,7 +178,7 @@ public function createView(ChoiceListInterface $list, $preferredChoices = null,
178
178
if (\is_string($groupBy) && !\is_callable($groupBy)) {
@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);
181
+
@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);
182
182
}
183
183
184
184
if ($groupByinstanceof PropertyPath) {
@@ -195,7 +195,7 @@ public function createView(ChoiceListInterface $list, $preferredChoices = null,
@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);
198
+
@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 Symfony 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 Symfony 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 Symfony 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 Symfony 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 Symfony 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 Symfony 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
@@ -88,7 +88,7 @@ public function preSubmit(FormEvent $event)
88
88
$data = $event->getData();
89
89
90
90
if ($datainstanceof \Traversable && $datainstanceof \ArrayAccess) {
91
-
@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);
91
+
@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);
92
92
}
93
93
94
94
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
@@ -276,7 +276,7 @@ public function configureOptions(OptionsResolver $resolver)
276
276
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.', static::class));
277
277
}
278
278
279
-
@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);
279
+
@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([
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 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);
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([
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 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);
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);
0 commit comments