Skip to content

Commit 588a8b7

Browse files
committed
[2.7][DX] Use constant message contextualisation for deprecations
1 parent c4a17b4 commit 588a8b7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Annotation/Route.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function __construct(array $data)
5757
*/
5858
public function setPattern($pattern)
5959
{
60-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. Use the setPath() method instead and use the "path" option instead of the "pattern" option in the route definition.', E_USER_DEPRECATED);
60+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.2 and will be removed in 3.0. Use the setPath() method instead and use the "path" option instead of the "pattern" option in the route definition.', E_USER_DEPRECATED);
6161

6262
$this->path = $pattern;
6363
}
@@ -67,7 +67,7 @@ public function setPattern($pattern)
6767
*/
6868
public function getPattern()
6969
{
70-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. Use the getPath() method instead and use the "path" option instead of the "pattern" option in the route definition.', E_USER_DEPRECATED);
70+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.2 and will be removed in 3.0. Use the getPath() method instead and use the "path" option instead of the "pattern" option in the route definition.', E_USER_DEPRECATED);
7171

7272
return $this->path;
7373
}

Route.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function unserialize($serialized)
114114
*/
115115
public function getPattern()
116116
{
117-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. Use the getPath() method instead.', E_USER_DEPRECATED);
117+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.2 and will be removed in 3.0. Use the getPath() method instead.', E_USER_DEPRECATED);
118118

119119
return $this->path;
120120
}
@@ -132,7 +132,7 @@ public function getPattern()
132132
*/
133133
public function setPattern($pattern)
134134
{
135-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. Use the setPath() method instead.', E_USER_DEPRECATED);
135+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.2 and will be removed in 3.0. Use the setPath() method instead.', E_USER_DEPRECATED);
136136

137137
return $this->setPath($pattern);
138138
}

0 commit comments

Comments
 (0)