drupal-check web/modules/contrib/login_destination
14/14 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ----------------------------------------------------------
Line login_destination.module
------ ----------------------------------------------------------
27 Call to deprecated method l() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
Example:
------ ----------------------------------------------------------
------ -------------------------------------------------------------------------------
Line src/Entity/LoginDestination.php
------ -------------------------------------------------------------------------------
308 Call to deprecated method strpos() of class Drupal\Component\Utility\Unicode:
in Drupal 8.6.0, will be removed before Drupal 9.0.0. Use
mb_strpos() instead.
------ -------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------
Line src/LoginDestinationManager.php
------ -----------------------------------------------------------------------------------
98 Call to deprecated method strtolower() of class Drupal\Component\Utility\Unicode:
in Drupal 8.6.0, will be removed before Drupal 9.0.0. Use
mb_strtolower() instead.
135 Call to deprecated method strtolower() of class Drupal\Component\Utility\Unicode:
in Drupal 8.6.0, will be removed before Drupal 9.0.0. Use
mb_strtolower() instead.
------ -----------------------------------------------------------------------------------
------ ---------------------------------------------------------------------------
Line tests/src/Functional/RedirectTest.php
------ ---------------------------------------------------------------------------
204 Call to deprecated method getUsername() of class Drupal\user\Entity\User:
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\Session\AccountInterface::getAccountName() or
\Drupal\user\UserInterface::getDisplayName() instead.
242 Call to deprecated method getUsername() of class Drupal\user\Entity\User:
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\Session\AccountInterface::getAccountName() or
\Drupal\user\UserInterface::getDisplayName() instead.
------ ---------------------------------------------------------------------------
------ ---------------------------------------------------------------------------------------------------------------------------------
Line tests/src/Traits/LoginDestinationCreationTrait.php (in context of class Drupal\Tests\login_destination\Functional\RedirectTest)
------ ---------------------------------------------------------------------------------------------------------------------------------
28 Call to deprecated method strtolower() of class Drupal\Component\Utility\Unicode:
in Drupal 8.6.0, will be removed before Drupal 9.0.0. Use
mb_strtolower() instead.
------ ---------------------------------------------------------------------------------------------------------------------------------
[ERROR] Found 7 errors
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | interdiff_8-10.txt | 3.07 KB | suresh prabhu parkala |
| #10 | 3087567-10.patch | 7.59 KB | suresh prabhu parkala |
| #8 | interdiff_6-8.txt | 1.51 KB | suresh prabhu parkala |
| #8 | 3087567-8.patch | 6.44 KB | suresh prabhu parkala |
| #6 | interdiff_2-6.txt | 5.25 KB | gmangones |
Comments
Comment #2
dakruchko commentedplease review
Comment #3
dakruchko commentedComment #5
rsvelko commentedAt first sight all looks good. Will review once more, will test for regressions and will commit.
Cheers and thanks!
Comment #6
gmangones commentedHi, was apply the patch and add line code of compatibility Drupal 8.7.10 || 9.
Thank's.
Comment #7
gaëlgI applied latest patch on latest dev but Upgrade status module still find one problem:
Comment #8
suresh prabhu parkala commentedPlease review!
Comment #10
suresh prabhu parkala commentedPlease review the patch.
Comment #11
gaëlgThe patch looks good and Upgrade status module finds no more deprecation. Thank you!
Comment #12
rsvelko commentedThe patch applies ok to 8.x branch. Those changes are cosmetic and nice to have.
About the core_version_requirement - we'll not use it on out current 8.x-1.x releases/branch, the way I see it, we'll have to release a 8.x-2.x branch that is compatible with D8.8+ and maybe a new one for 9.x.
Comment #13
rsvelko commentedI had to change Unicode::mb_strpos to mb_strpos etc and re-rolled the patch, or else the patch broke the module.
Also I decided to keep the 8.x-1.x branch of the module compatible with D8 below 8.8, and to add a 8.x-2.x branch of the module - compatible with D8.8+ and D9.
Comment #14
rsvelko commentedSo to clarify: I've just added the 8.x-2.x branch of the module - and committed the changes to it ONLY.
This 8.x-2.x will be the branch in which we will fix the deprecated code.
8.x-1.x will remain with the deprecated functions and will remain compatible with drupal versions below 8.8.
Comment #16
joshua.boltz commentedFYI, additional deprecation issues have been fixed in https://www.drupal.org/project/login_destination/issues/3145855