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
Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Form/ChoiceList/DoctrineChoiceLoader.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ public function __construct($manager, $class, $idReader = null, $objectLoader =
69
69
{
70
70
// BC to be removed and replace with type hints in 4.0
71
71
if ($managerinstanceof ChoiceListFactoryInterface) {
72
-
@trigger_error(sprintf('Passing a ChoiceListFactoryInterface to %s is deprecated since version 3.1 and will no longer be supported in 4.0. You should either call "%s::loadChoiceList" or override it to return a ChoiceListInterface.', __CLASS__, __CLASS__));
72
+
@trigger_error(sprintf('Passing a ChoiceListFactoryInterface to %s is deprecated since version 3.1 and will no longer be supported in 4.0. You should either call "%s::loadChoiceList" or override it to return a ChoiceListInterface.', __CLASS__, __CLASS__), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/ChoiceList/LazyChoiceList.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ public function getChoices()
83
83
// We can safely invoke the {@link ChoiceLoaderInterface} assuming it has the list
84
84
// in cache when the lazy list is already loaded
85
85
if ($this->loadedList !== $this->loader->loadChoiceList($this->value)) {
86
-
@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));
86
+
@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);
87
87
}
88
88
89
89
return$this->loadedList->getChoices();
@@ -106,7 +106,7 @@ public function getValues()
106
106
if ($this->loaded) {
107
107
// Check whether the loader has the same cache
108
108
if ($this->loadedList !== $this->loader->loadChoiceList($this->value)) {
109
-
@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));
109
+
@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);
110
110
}
111
111
112
112
return$this->loadedList->getValues();
@@ -129,7 +129,7 @@ public function getStructuredValues()
129
129
if ($this->loaded) {
130
130
// Check whether the loader has the same cache
131
131
if ($this->loadedList !== $this->loader->loadChoiceList($this->value)) {
132
-
@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));
132
+
@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);
133
133
}
134
134
135
135
return$this->loadedList->getStructuredValues();
@@ -152,7 +152,7 @@ public function getOriginalKeys()
152
152
if ($this->loaded) {
153
153
// Check whether the loader has the same cache
154
154
if ($this->loadedList !== $this->loader->loadChoiceList($this->value)) {
155
-
@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));
155
+
@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);
156
156
}
157
157
158
158
return$this->loadedList->getOriginalKeys();
@@ -175,7 +175,7 @@ public function getChoicesForValues(array $values)
175
175
if ($this->loaded) {
176
176
// Check whether the loader has the same cache
177
177
if ($this->loadedList !== $this->loader->loadChoiceList($this->value)) {
178
-
@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));
178
+
@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);
@@ -192,7 +192,7 @@ public function getValuesForChoices(array $choices)
192
192
if ($this->loaded) {
193
193
// Check whether the loader has the same cache
194
194
if ($this->loadedList !== $this->loader->loadChoiceList($this->value)) {
195
-
@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));
195
+
@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);
0 commit comments