-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[WebProfilerBundle][DX] Where are the deprecation messages coming from? #31015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WebProfilerBundle][DX] Where are the deprecation messages coming from? #31015
Conversation
Tests need to be updated. |
@@ -27,7 +27,7 @@ class TreeBuilder implements NodeParentInterface | |||
public function __construct(string $name = null, string $type = 'array', NodeBuilder $builder = null) | |||
{ | |||
if (null === $name) { | |||
@trigger_error('A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0.', E_USER_DEPRECATED); | |||
@trigger_error(sprintf('A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0 see %s.', end(explode('/', debug_backtrace()[0]['file']))), E_USER_DEPRECATED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using basename() could fix the failing test think
Yeah it’s not enough to deaggregzte them, maybe like nicolas said using
basename would be better.
Le lun. 8 avr. 2019 à 23:58, Tobias Nyholm <notifications@github.com> a
écrit :
… I tested this PR. The result looks like this:
[image: Screenshot 2019-04-08 at 23 55 54]
<https://user-images.githubusercontent.com/1275206/55759576-f6c1dc80-5a59-11e9-9739-4e6bcfe6f329.png>
Im not sure it is super helpful to see "Configuration.php" in the
deprecation warning.
Im more helped by the trace.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#31015 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADSq8mcgFa1CZ6dR58omqfFubMhnoNRJks5ve7ttgaJpZM4cinbW>
.
|
I think #31027 is a better alternative. WDYT? |
I agree, thanks for giving it a try! |
This PR was merged into the 4.3-dev branch. Discussion ---------- [Config] Deprecate TreeBuilder::root | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | | Fixed tickets | #29876 | License | MIT | Doc PR | — Alternative idea to #31015. Or is the `root` method still needed? It would look like this:  Commits ------- ff6bc79 Deprecate TreeBuilder::root
The test according to this deprecation has been updated accordingly, it seems to be enough to limit the aggregation of message coming from different bundles