Drupal 9 Deprecated Code Report

Created on 27 January 2021, almost 4 years ago
Updated 2 November 2023, about 1 year ago

Minor issue discovered by Rector
Rector v0.7.29
Config file: rector.yml

9/9 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

1 file with changes
===================

1) modules/redirect_after_login/redirect_after_login.module

---------- begin diff ----------
--- Original
+++ New
@@ -72,7 +72,7 @@
->get('system.maintenance_mode') && !$account->hasPermission('access site in maintenance mode')) {
// The site is in maintenance mode and the user is not allowed in.
// Step out and let Drupal handle it.
- $homeResponse = new RedirectResponse(URL::fromUserInput('/')->toString());
+ $homeResponse = new RedirectResponse(Url::fromUserInput('/')->toString());
$homeResponse->send();
}

@@ -100,7 +100,7 @@
$response->send();
}
else {
- $homeResponse = new RedirectResponse(URL::fromUserInput('/')->toString());
+ $homeResponse = new RedirectResponse(Url::fromUserInput('/')->toString());
$homeResponse->send();
}
}
----------- end diff -----------

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇧🇾Belarus Kate.Yemelyanenka

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024