Skip to content

Commit 0f1a730

Browse files
committed
[2.7][DX] Use constant message contextualisation for deprecations
1 parent 1dd3a41 commit 0f1a730

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Definition.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function setFactoryClass($factoryClass)
108108
public function getFactoryClass($triggerDeprecationError = true)
109109
{
110110
if ($triggerDeprecationError) {
111-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
111+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
112112
}
113113

114114
return $this->factoryClass;
@@ -177,7 +177,7 @@ public function getDecoratedService()
177177
public function getFactoryMethod($triggerDeprecationError = true)
178178
{
179179
if ($triggerDeprecationError) {
180-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
180+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
181181
}
182182

183183
return $this->factoryMethod;
@@ -213,7 +213,7 @@ public function setFactoryService($factoryService, $triggerDeprecationError = tr
213213
public function getFactoryService($triggerDeprecationError = true)
214214
{
215215
if ($triggerDeprecationError) {
216-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
216+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
217217
}
218218

219219
return $this->factoryService;
@@ -612,7 +612,7 @@ public function isPublic()
612612
public function setSynchronized($boolean, $triggerDeprecationError = true)
613613
{
614614
if ($triggerDeprecationError) {
615-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
615+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
616616
}
617617

618618
$this->synchronized = (bool) $boolean;
@@ -630,7 +630,7 @@ public function setSynchronized($boolean, $triggerDeprecationError = true)
630630
public function isSynchronized($triggerDeprecationError = true)
631631
{
632632
if ($triggerDeprecationError) {
633-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
633+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
634634
}
635635

636636
return $this->synchronized;

Dumper/PhpDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ public function dumpParameter($name)
14191419
*/
14201420
public function addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider)
14211421
{
1422-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6.2 and will be removed in 3.0. Use the Symfony\Component\DependencyInjection\ContainerBuilder::addExpressionLanguageProvider method instead.', E_USER_DEPRECATED);
1422+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6.2 and will be removed in 3.0. Use the Symfony\Component\DependencyInjection\ContainerBuilder::addExpressionLanguageProvider method instead.', E_USER_DEPRECATED);
14231423

14241424
$this->expressionLanguageProviders[] = $provider;
14251425
}

0 commit comments

Comments
 (0)