Skip to content

Commit 34522ac

Browse files
committed
[2.7][DX] Use constant message contextualisation for deprecations
1 parent 1e873e3 commit 34522ac

15 files changed

+24
-24
lines changed

ButtonBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ public function getByReference()
588588
*/
589589
public function getVirtual()
590590
{
591-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the Symfony\Component\Form\FormConfigBuilder::getInheritData method instead.', E_USER_DEPRECATED);
591+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the Symfony\Component\Form\FormConfigBuilder::getInheritData method instead.', E_USER_DEPRECATED);
592592

593593
return false;
594594
}

Extension/Core/ChoiceList/ChoiceList.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function getValuesForChoices(array $choices)
200200
*/
201201
public function getIndicesForChoices(array $choices)
202202
{
203-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
203+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
204204

205205
$choices = $this->fixChoices($choices);
206206
$indices = array();
@@ -228,7 +228,7 @@ public function getIndicesForChoices(array $choices)
228228
*/
229229
public function getIndicesForValues(array $values)
230230
{
231-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
231+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
232232

233233
$values = $this->fixValues($values);
234234
$indices = array();

Extension/Core/ChoiceList/LazyChoiceList.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function getValuesForChoices(array $choices)
115115
*/
116116
public function getIndicesForChoices(array $choices)
117117
{
118-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
118+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
119119

120120
if (!$this->choiceList) {
121121
$this->load();
@@ -131,7 +131,7 @@ public function getIndicesForChoices(array $choices)
131131
*/
132132
public function getIndicesForValues(array $values)
133133
{
134-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
134+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
135135

136136
if (!$this->choiceList) {
137137
$this->load();

Extension/Core/ChoiceList/ObjectChoiceList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public function getValuesForChoices(array $choices)
196196
*/
197197
public function getIndicesForChoices(array $choices)
198198
{
199-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
199+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
200200

201201
if (!$this->valuePath) {
202202
return parent::getIndicesForChoices($choices);

Extension/Core/EventListener/FixCheckboxInputListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function preSubmit(FormEvent $event)
8989
*/
9090
public function preBind(FormEvent $event)
9191
{
92-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
92+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
9393

9494
$this->preSubmit($event);
9595
}

Extension/Core/EventListener/FixRadioInputListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function preSubmit(FormEvent $event)
7171
*/
7272
public function preBind(FormEvent $event)
7373
{
74-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
74+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
7575

7676
$this->preSubmit($event);
7777
}

Extension/Core/EventListener/FixUrlProtocolListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function onSubmit(FormEvent $event)
4949
*/
5050
public function onBind(FormEvent $event)
5151
{
52-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the onSubmit() method instead.', E_USER_DEPRECATED);
52+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the onSubmit() method instead.', E_USER_DEPRECATED);
5353

5454
$this->onSubmit($event);
5555
}

Extension/Core/EventListener/MergeCollectionListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function onSubmit(FormEvent $event)
119119
*/
120120
public function onBind(FormEvent $event)
121121
{
122-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the onSubmit() method instead.', E_USER_DEPRECATED);
122+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the onSubmit() method instead.', E_USER_DEPRECATED);
123123

124124
$this->onSubmit($event);
125125
}

Extension/Core/EventListener/ResizeFormListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public function onSubmit(FormEvent $event)
172172
*/
173173
public function preBind(FormEvent $event)
174174
{
175-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
175+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
176176

177177
$this->preSubmit($event);
178178
}
@@ -185,7 +185,7 @@ public function preBind(FormEvent $event)
185185
*/
186186
public function onBind(FormEvent $event)
187187
{
188-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the onSubmit() method instead.', E_USER_DEPRECATED);
188+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the onSubmit() method instead.', E_USER_DEPRECATED);
189189

190190
$this->onSubmit($event);
191191
}

Extension/Core/EventListener/TrimListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function preSubmit(FormEvent $event)
4545
*/
4646
public function preBind(FormEvent $event)
4747
{
48-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
48+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
4949

5050
$this->preSubmit($event);
5151
}

0 commit comments

Comments
 (0)