Skip to content

Commit 168a5d8

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: [2.7][DX] Use constant message contextualisation for deprecations
2 parents ae0be37 + 0f1a730 commit 168a5d8

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
@@ -115,7 +115,7 @@ public function setFactoryClass($factoryClass)
115115
public function getFactoryClass($triggerDeprecationError = true)
116116
{
117117
if ($triggerDeprecationError) {
118-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
118+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
119119
}
120120

121121
return $this->factoryClass;
@@ -185,7 +185,7 @@ public function getDecoratedService()
185185
public function getFactoryMethod($triggerDeprecationError = true)
186186
{
187187
if ($triggerDeprecationError) {
188-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
188+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
189189
}
190190

191191
return $this->factoryMethod;
@@ -221,7 +221,7 @@ public function setFactoryService($factoryService, $triggerDeprecationError = tr
221221
public function getFactoryService($triggerDeprecationError = true)
222222
{
223223
if ($triggerDeprecationError) {
224-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
224+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
225225
}
226226

227227
return $this->factoryService;
@@ -660,7 +660,7 @@ public function isPublic()
660660
public function setSynchronized($boolean, $triggerDeprecationError = true)
661661
{
662662
if ($triggerDeprecationError) {
663-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
663+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
664664
}
665665

666666
$this->synchronized = (bool) $boolean;
@@ -678,7 +678,7 @@ public function setSynchronized($boolean, $triggerDeprecationError = true)
678678
public function isSynchronized($triggerDeprecationError = true)
679679
{
680680
if ($triggerDeprecationError) {
681-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
681+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
682682
}
683683

684684
return $this->synchronized;

Dumper/PhpDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,7 @@ public function dumpParameter($name)
14321432
*/
14331433
public function addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider)
14341434
{
1435-
@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);
1435+
@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);
14361436

14371437
$this->expressionLanguageProviders[] = $provider;
14381438
}

0 commit comments

Comments
 (0)