Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the file : core/lib/Drupal/Core/Url.php
, function setUnrouted in class Url is not returning $this. But in comment doc already documented @returng as $this.
I have added the return $this;
to the function .
here is the changes,
@@ -515,6 +515,7 @@ protected function setUnrouted() {
// Set empty route name and parameters.
$this->routeName = NULL;
$this->routeParameters = array();
+ return $this;
Comment | File | Size | Author |
---|---|---|---|
urlclass-missing-return-this-1.patch | 375 bytes | rakesh.gectcr | |
Comments
Comment #2
tim.plunkettThanks!
Comment #3
chx CreditAttribution: chx commentedComment #4
tim.plunkettI almost tagged this rc eligible, but I guess it's not.
But it's a oneline change to a protected method on a value object, it's very non-disruptive.
Comment #5
Wim LeersYep, plain bugfix. Was also tempted to mark this
.Comment #6
alexpott@catch and I have discuss and agree that this makes sense to do during RC.
Comment #7
alexpottCommitted ec470dd and pushed to 8.0.x. Thanks!