Skip to content

Commit d6334a1

Browse files
committed
minor #25565 [2.7][DX] Use constant message contextualisation for deprecations (romainneutron)
This PR was merged into the 2.7 branch. Discussion ---------- [2.7][DX] Use constant message contextualisation for deprecations | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes Since many projects are using this mechanism for deprecating feature, it is sometimes difficult to understand which vendor triggers a deprecation. Sometimes we're using `since Symfony x.y` format, sometimes we are using `since x.y`. I propose to always use `since Symfony x.y` format. Commits ------- c2338cbd7a [2.7][DX] Use constant message contextualisation for deprecations
2 parents 0e518f4 + c9c20fc commit d6334a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Session/Flash/FlashBag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function clear()
161161
*/
162162
public function getIterator()
163163
{
164-
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
164+
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
165165

166166
return new \ArrayIterator($this->all());
167167
}

0 commit comments

Comments
 (0)