8000 bug #19522 [SwiftMailerBridge] Fix flawed deprecation message (chalasr) · symfony/symfony@aae8e3d · GitHub
[go: up one dir, main page]

Skip to content

Commit aae8e3d

Browse files
bug #19522 [SwiftMailerBridge] Fix flawed deprecation message (chalasr)
This PR was merged into the 2.7 branch. Discussion ---------- [SwiftMailerBridge] Fix flawed deprecation message | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Given `__CLASS__` returns null outside of a class, the deprecation message is incomplete. Commits ------- 9b0cbab Remove usage of __CLASS__ outside of a class
2 parents 1976b8b + 9b0cbab commit aae8e3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Swiftmailer/DataCollector/MessageDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Bridge\Swiftmailer\DataCollector;
1313

14-
@trigger_error(__CLASS__.' class is deprecated since version 2.4 and will be removed in 3.0. Use the Symfony\Bundle\SwiftmailerBundle\DataCollector\MessageDataCollector class from SwiftmailerBundle instead. Require symfony/swiftmailer-bundle package to download SwiftmailerBundle with Composer.', E_USER_DEPRECATED);
14+
@trigger_error('The '.__NAMESPACE__.'\MessageDataCollector class is deprecated since version 2.4 and will be removed in 3.0. Use the Symfony\Bundle\SwiftmailerBundle\DataCollector\MessageDataCollector class from SwiftmailerBundle instead. Require symfony/swiftmailer-bundle package to download SwiftmailerBundle with Composer.', E_USER_DEPRECATED);
1515

1616
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
1717
use Symfony\Component\HttpFoundation\Request;

0 commit comments

Comments
 (0)
0